public App() { // Thanks Bohdan! https://twitter.com/bbenetskyy StyleSheetRegistrar.RegisterStyle("-xf-horizontal-options", typeof(VisualElement), nameof(View.HorizontalOptionsProperty)); StyleSheetRegistrar.RegisterStyle("-xf-shell-navbarhasshadow", typeof(Shell), nameof(Shell.NavBarHasShadowProperty)); Device.SetFlags(new[] { "CarouselView_Experimental", "IndicatorView_Experimental", "RadioButton_Experimental", "AppTheme_Experimental", "Markup_Experimental", "Expander_Experimental" }); InitializeComponent(); MainPage = new AppShell(); this.RequestedThemeChanged += App_RequestedThemeChanged; }
public App() { InitializeComponent(); MainPage = new AppShell(); }