Exemple #1
0
        private void ResetView()
        {
            History_btn.SetAppThemeColor(Label.TextColorProperty, Color.Black, Color.White);
            Favourites_btn.SetAppThemeColor(Label.TextColorProperty, Color.Black, Color.White);
            History_btn.FontSize    = 25;
            Favourites_btn.FontSize = 25;

            if (Device.RuntimePlatform == Device.Android)
            {
                add_wine_stack.Margin = new Thickness(0, 526, 20, 0);
            }
            else
            {
                add_wine_stack.Margin = new Thickness(0, 539, 18, 0);
            }

            ShowWelcomeLabels();
        }
Exemple #2
0
        async void History_btn_Clicked(System.Object sender, System.EventArgs e)
        {
            this.favClicked  = false;
            this.histClicked = true;
            DeleteWelcomeLabels();
            my_list_view.IsVisible = false;
            //setting del BindingContext
            MyHistoryPageViewModel his = new MyHistoryPageViewModel();

            Loading.IsVisible = true;
            await his.GetInfoAsync();

            Loading.IsVisible                = false;
            my_list_view.IsVisible           = true;
            BindingContext                   = his;
            my_list_view.SeparatorVisibility = 0;

            //setting del colore in base al tema del dispositivo
            Favourites_btn.SetAppThemeColor(Label.TextColorProperty, Color.Black, Color.White);
            Favourites_btn.FontSize = 25;
            History_btn.TextColor   = violetto;
            History_btn.FontSize    = 28;
        }