Beispiel #1
0
        private void AnimateCarousel()
        {
            SetProducts setProducts = new SetProducts();

            Carousel.DataContext = setProducts.GetAllItems();
            Storyboard      storyboard = (this.Resources["CarouselStoryboard"] as Storyboard);
            DoubleAnimation animation  = storyboard.Children.First() as DoubleAnimation;

            animation.To = -this.Width * currentElement;
            storyboard.Begin();
        }
Beispiel #2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)

        {
            listdata.ItemsSource = setProducts.GetAllItems();
            List <string> ml = new List <string>()
            {
                "350 ml", "450 ml", "500 ml"
            };

            cmb_filter.ItemsSource = ml;
        }