示例#1
0
 private async void PopupOrderProduct(object sender, EventArgs e)
 {
     HolderPage.IsVisible = !HolderPage.IsVisible;
     if (!HolderPage.IsVisible)
     {
         await FrameProduct.FadeTo(0, 250, Easing.CubicIn);
     }
     else
     {
         await FrameProduct.FadeTo(1, 250, Easing.CubicIn);
     }
 }
示例#2
0
        private async void PopupOrderProduct(object sender, EventArgs e)
        {
            HolderPage.IsVisible = !HolderPage.IsVisible;
            if (!HolderPage.IsVisible)
            {
                ProductListProperty.ProductSelect = null;
                await FrameProduct.FadeTo(0, 250, Easing.CubicIn);

                FrameProduct.IsVisible = false;
            }
            else
            {
                if (sender is StackLayout)
                {
                    ProductListProperty.ProductSelect = (BLL.M.Mobile.Product)((StackLayout)sender).BindingContext;
                    FrameProduct.IsVisible            = true;
                }
                await FrameProduct.FadeTo(1, 250, Easing.CubicIn);
            }
        }
        private async void PopupOrderProduct(object sender, EventArgs e)
        {
            HolderPage.IsVisible = !HolderPage.IsVisible;
            if (!HolderPage.IsVisible)
            {
                var DefualtHeight = LahmaOnline.StyleViews.Styles.SetterStyle.Maintain_HeightAspectRatio(600);
                MyFavouritesProperty.ProductSelect = null;
                await FrameProduct.FadeTo(0, 250, Easing.CubicIn);

                FrameProduct.IsVisible = false;
            }
            else
            {
                if (sender is StackLayout)
                {
                    MyFavouritesProperty.ProductSelect = (ViewModel.ProductCart)((StackLayout)sender).BindingContext;
                    FrameProduct.IsVisible             = true;
                }
                await FrameProduct.FadeTo(1, 250, Easing.CubicIn);
            }
        }