コード例 #1
0
        private async void AddComponent()
        {
            StartAnimation();
            buttonBack = new Button()
            {
                Text  = "Go back",
                Style = (Style)App.CurrentApp.Resources["buttonStyle"]
            };
            buttonBack.Clicked += (sender, e) =>
            {
                App.CurrentApp.MainPage = new Animation_TestMainPage();
            };
            await animation.Add(buttonBack);

            stackLayoutContent.Children.Add(buttonBack);
            await animation.Animate();
        }