예제 #1
0
파일: App.xaml.cs 프로젝트: parrafo28/FlyMe
        public App()
        {
            StyleSheetRegistrar.RegisterStyle("-xf-horizontal-options", typeof(VisualElement), nameof(View.HorizontalOptionsProperty));
            StyleSheetRegistrar.RegisterStyle("-xf-shell-navbarhasshadow", typeof(Shell), nameof(Shell.NavBarHasShadowProperty));

            InitializeComponent();

            Device.SetFlags(new[] { "CarouselView_Experimental", "IndicatorView_Experimental" });

            MainPage = new AppShell();
        }
예제 #2
0
        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;
        }