/// <summary> /// 载入页面时的动画效果,渐变下沉 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private async void Page_Loaded(object sender, RoutedEventArgs e) { float centerX = (float)Window.Current.Bounds.Width / 2; float centerY = (float)Window.Current.Bounds.Width / 2; await BackgroundPic.Scale(scaleX : 1.5f, scaleY : 1.5f, centerX : centerX, centerY : centerY, duration : 0).StartAsync(); var animBG = BackgroundPic.Scale(scaleX: 1f, scaleY: 1f, centerX: centerX, centerY: centerY) .Blur(value: 15); animBG.SetDurationForAll(10000); animBG.Start(); await Logo.Fade(value : 0, duration : 0).StartAsync(); await LoginAsVisitorPanel.Fade(value : 0, duration : 0).StartAsync(); await LoginAsAdminPanel.Fade(value : 0, duration : 0).StartAsync(); var animLogo = Logo.Offset(offsetY: 20).Fade(value: 1).SetDurationForAll(3000).SetDelayForAll(1000); var animAdminPanel = LoginAsAdminPanel.Offset(offsetY: 20).Fade(value: 1).SetDurationForAll(3000).SetDelayForAll(2000); var animVisitorPanel = LoginAsVisitorPanel.Offset(offsetY: 20).Fade(value: 1).SetDurationForAll(3000).SetDelayForAll(2500); animLogo.Start(); animVisitorPanel.Start(); animAdminPanel.Start(); CheckNewVersion(); }