コード例 #1
0
        protected sealed override void Initialize()
        {
            base.Initialize();
            var theme = _themeManager.GetThemeFromColor("blue");

            StatusBarColor     = theme.Dark;
            NavigationBarColor = theme.Primary;
            BackgroundColor    = theme.Primary;
        }
コード例 #2
0
        protected override void Initialize()
        {
            var color = _themeManager.GetThemeFromColor("indigo");

            StatusBarColor           = color.Dark;
            ActionBarBackgroundColor = color.Primary;
            NavigationBarColor       = Color.Black;
            base.Initialize();
        }
コード例 #3
0
        public BasketPage(IThemeManager themeManager)
        {
            InitializeComponent();

            var theme = themeManager.GetThemeFromColor("green");

            ActionBarBackgroundColor = theme.Primary;
            NavigationBarColor       = theme.Dark;
            StatusBarColor           = theme.Dark;
            orders.ItemSelected     += Orders_ItemSelected;
        }
コード例 #4
0
        public SignInPage(IThemeManager themeManager)
        {
            InitializeComponent();
            var theme = themeManager.GetThemeFromColor("red");

            StatusBarColor           = theme.Dark;
            ActionBarBackgroundColor = theme.Primary;
            //SignInViewModel.Login.Subscribe(async x =>
            //{
            //    await AnimateControls(0, Easing.SinOut);
            //    SignInViewModel.NavigateToMainPage(x);
            //    SignInViewModel.IsBusy = false;
            //});
        }
コード例 #5
0
        public FoodsPage(IThemeManager themeManager)
        {
            InitializeComponent();

            var theme = themeManager.GetThemeFromColor("bluePink");

            ActionBarBackgroundColor = theme.Primary;
            StatusBarColor           = theme.Dark;
            NavigationBarColor       = theme.Dark;
            ActionBarTextColor       = Color.White;
            Title = "Foods";

            _itemSelectedSubscriber = Observable.FromEventPattern <SelectedItemChangedEventArgs>(FoodsList, "ItemSelected")
                                      .Select(x => x.Sender)
                                      .Cast <ListView>()
                                      .Subscribe(l =>
            {
                l.SelectedItem = null;
            });
        }