示例#1
0
        protected override async void OnAppearing()
        {
            base.OnAppearing();

            if (!_initialized)
            {
                await Task.WhenAll(
                    WelcomeLabel.TranslateTo(_formsWidth, 0, 0, null),
                    PosyLabel.TranslateTo(_formsWidth, 0, 0, null),
                    FormLayout.TranslateTo(0, _formsHeight, 0, null),
                    CalculateButton.TranslateTo(0, _formsHeight, 0, null),
                    IntroLabel.TranslateTo(_formsWidth, 0, 0, null)
                    );

                PositionStars();
                RotateStars();

                await Task.WhenAll(
                    WelcomeLabel.TranslateTo(0, 0, 400, Easing.CubicInOut),
                    PosyLabel.TranslateTo(0, 0, 450, Easing.CubicInOut),
                    IntroLabel.TranslateTo(0, 0, 500, Easing.CubicInOut),
                    FormLayout.TranslateTo(0, 0, 550, Easing.CubicInOut),
                    CalculateButton.TranslateTo(0, 0, 550, Easing.CubicInOut)
                    );

                _initialized = true;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (BackButton != null)
            {
                BackButton.Dispose();
                BackButton = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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