Ejemplo n.º 1
0
        private void AnimateFromActionPanel(object sender) {
            this.Dispatcher.RunAsync(CoreDispatcherPriority.Low, () => {
                var button = (Button)sender;
                var watchedStockButton = button.Ancestors<Button>().First(b => b.Name == "WatchedStockButton");
                var stackPanel = (StackPanel)watchedStockButton.FindName("RequestStockAction");
                var grid = (Grid)watchedStockButton.FindName("StockTicker");

                var flipAnimator = new FlipAnimator(stackPanel, grid);
                flipAnimator.Start();
            });
        }
Ejemplo n.º 2
0
        private void AnimateToActionPanel(object sender) {
            this.Dispatcher.RunAsync(CoreDispatcherPriority.Low, () => {
                var button = (Button) sender;

                var stackPanel = (StackPanel) button.FindName("RequestStockAction");
                var grid = (Grid) button.FindName("StockTicker");

                var flipAnimator = new FlipAnimator(grid, stackPanel);
                flipAnimator.Start();
            });
        }