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); } }
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); } }