There is a shared application xamarin.forms

for example ContentPage :

 using System; using System.Collections.Generic; using System.Linq; using System.Reflection.Emit; using System.Text; using Xamarin.Forms; namespace MyFin1.Views.Reports { public class Reports_view : ContentPage { StackLayout Lay = new StackLayout(); public Reports_view () { Lay.Children.Add( new Xamarin.Forms.Label { Text = "Мои Финансы", TextColor = Color.FromRgb(200, 200, 200), HorizontalOptions = LayoutOptions.Center, VerticalOptions = LayoutOptions.Center, FontSize = Device.GetNamedSize(NamedSize.Large, typeof(Xamarin.Forms.Label)), FontAttributes = FontAttributes.Bold | FontAttributes.Italic } ); Button Bar_chart_go = new Button { Text = "Динамика" }; Button Pie_chart_go = new Button { Text = "Структура" }; Bar_chart_go.Clicked += Bar_chart_go_Clicked; Pie_chart_go.Clicked += Pie_chart_go_Clicked; Lay.Children.Add(Bar_chart_go); Lay.Children.Add(Pie_chart_go); Content = new StackLayout { Children = { Lay } }; } } } 

On the android emulator, everything works as it should (when turning, the image rotates): enter image description here

enter image description here

When I run on wp (nokia 530), the following happens:

enter image description here

enter image description here

Moreover, if I first turn the screen and then press it back and return to the same page, everything looks as it should. in MainPage.xaml.cs SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape;

Is it possible to fix this?

PS copy of the question on EN_SO

    0