Exemple #1
0
        private void PizzaBtn_OnClick(object sender, RoutedEventArgs e)
        {
            var btn = (Button)sender;

            _pizza = btn.Name;

            PizzaGridTranslate.BeginAnimation(TranslateTransform.XProperty, HideAnimation());
            DrinkGridTranslate.BeginAnimation(TranslateTransform.XProperty, ShowAnimation());
        }
Exemple #2
0
 private void MainBtn_OnClick(object sender, RoutedEventArgs e)
 {
     MainGridTranslate.BeginAnimation(TranslateTransform.XProperty, HideAnimation());
     PizzaGridTranslate.BeginAnimation(TranslateTransform.XProperty, ShowAnimation());
 }