[Feedback] Xamarin Forms ContentPresenter doesn't display correctly in Right-to-Left after rotation
#5,025 opened on Jan 18, 2019
Repository metrics
- Stars
- (5,644 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
Description
If you create a custom ContentView with a control template, the content assigned to the control does not display correctly after rotation if the FlowDirection is set to RightToLeft - regardless of whether it is from the device or if it is set explicitly.
On both iOS and Android (haven’t tested Windows yet), the contents shift to the right, extending past the edge of the screen.
Steps to Reproduce:
- Create a plain Xamarin Forms project supporting iOS and Android (and probably Windows)
- Create a new Forms ContentView XAML object
- Add a ControlTemplate with a ContentPresenter
- In MainPage.xaml, put the newly created ContentView onto the page
- Put content into the ContentView
- Change the FlowDirection to Right-to-Left
- Run the app and rotate it
A sample that reproduces the problem can be found here: https://www.dropbox.com/s/3pak9ighagqzlr4/XamarinFormsTest.zip?dl=0 View on Developer Community To find diagnostic information, see the original linked feedback ticket.