Exemplo n.º 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();
        }
Exemplo n.º 2
0
        async void Favourites_btn_Clicked(System.Object sender, System.EventArgs e)
        {
            this.favClicked  = true;
            this.histClicked = false;
            DeleteWelcomeLabels();
            my_list_view.IsVisible = false;
            //setting del BindingContext
            MyFavoritesPageViewModel fav = new MyFavoritesPageViewModel();

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

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

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