Exemplo n.º 1
0
        public SubscriptionPage()
        {
            InitializeComponent();

            var sunAnimation = this.Resources["SunAnimation"] as RotateToAnimation;

            if (sunAnimation != null && Device.OS != TargetPlatform.Windows)
            {
                Sun.Animate(sunAnimation);
            }

            var cloudAnimation = this.Resources["CloudAnimation"] as StoryBoard;

            if (cloudAnimation != null)
            {
                Cloud.Animate(cloudAnimation);
            }

            var boyAnimation = this.Resources["BoyAnimation"] as StoryBoard;

            if (boyAnimation != null)
            {
                Boy.Animate(boyAnimation);
            }
        }
Exemplo n.º 2
0
        public AccountPage()
        {
            InitializeComponent();

            var sunAnimation = this.Resources["SunAnimation"] as RotateToAnimation;

            if (sunAnimation != null && Device.RuntimePlatform != Device.UWP)
            {
                Sun.Animate(sunAnimation);
            }

            var cloudAnimation = this.Resources["CloudAnimation"] as StoryBoard;

            if (cloudAnimation != null)
            {
                Cloud.Animate(cloudAnimation);
            }
        }