示例#1
0
        void ReleaseDesignerOutlets()
        {
            if (HelloButton != null)
            {
                HelloButton.Dispose();
                HelloButton = null;
            }

            if (Subheading != null)
            {
                Subheading.Dispose();
                Subheading = null;
            }

            if (WelcomeImage != null)
            {
                WelcomeImage.Dispose();
                WelcomeImage = null;
            }

            if (WelcomeLabel != null)
            {
                WelcomeLabel.Dispose();
                WelcomeLabel = null;
            }
        }
        private async void ExperimentsButton_OnClick(object sender, RoutedEventArgs e)
        {
            await Task.WhenAll(
                AnimationTrigger.AnimateClose(),
                ExperimentsButton.AnimateAsync(new FlipAnimation()),
                ExperimentsButton.AnimateAsync(new BounceOutAnimation()),
                HelloButton.AnimateAsync(new BounceOutUpAnimation()),
                SponsorText.AnimateAsync(new LightSpeedOutLeftAnimation())
                );

            Frame.Navigate(typeof(ExperimentPage));
        }
示例#3
0
        void ReleaseDesignerOutlets()
        {
            if (HelloButton != null)
            {
                HelloButton.Dispose();
                HelloButton = null;
            }

            if (HelloLabel != null)
            {
                HelloLabel.Dispose();
                HelloLabel = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (GoodbyeButton != null)
            {
                GoodbyeButton.Dispose();
                GoodbyeButton = null;
            }

            if (HelloButton != null)
            {
                HelloButton.Dispose();
                HelloButton = null;
            }

            if (NameTextField != null)
            {
                NameTextField.Dispose();
                NameTextField = null;
            }
        }