예제 #1
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            CustomizeTitleBar();

            if (!Windows.Foundation.Metadata.ApiInformation.IsTypePresent(
                    "Windows.UI.Xaml.Media.Animation.ConnectedAnimationService"))
            {
                BackButton.Width      = 48;
                BackButton.Height     = 36;
                BackButton.Visibility = Visibility.Visible;
                BackButton.Click     += (s, args) => Frame.GoBack();
            }

            var show = (TraktShow)e.Parameter;
            var ctx  = this.DataContext as DetailViewModel;
            await ctx.OnNavigatedTo(show);

            var blur = Background.Blur(value: 5, duration: 1000, delay: 400);

            if (blur != null)
            {
                await blur.StartAsync();
            }
        }
예제 #2
0
        private async void GotoNextPage()
        {
            foreach (var item in MainStack.Children)
            {
                await item.Fade(0, 500, 0).StartAsync();
            }
            await Background.Blur(0, 200, 0).StartAsync();

            Frame.Navigate(typeof(Device));
        }
예제 #3
0
 private async void Animate()
 {
     Background.Blur(8f, 1000, 1000).Start();
     foreach (var item in MainStack.Children)
     {
         item.Fade(0, 0, 0).Start();
     }
     MainStack.Fade(1, 1, 1).Start();
     foreach (var item in MainStack.Children)
     {
         await item.Fade(1, 800, 0).StartAsync();
     }
 }
예제 #4
0
 private async void Animate()
 {
     Background.Blur(8f, 1000, 1000).Start();
     foreach (var item in MainGrid.Children)
     {
         item.Fade(0, 0, 0).Start();
     }
     MainGrid.Fade(1, 1, 1).Start();
     foreach (var item in MainGrid.Children)
     {
         await item.Fade(1, 800, 0).StartAsync();
     }
     MainPivot.SelectedIndex = 0;
     HeaderPhoto.Background  = AppColor.PivotSelectedColor;
 }
예제 #5
0
        private async void GridView_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            StartupModel model = (sender as GridView).SelectedItem as StartupModel;

            Windows.Storage.ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;
            localSettings.Values["CameraModel"] = model.Description;
            if (model.Description != "M20")
            {
                await ShowExcept();
            }
            foreach (var item in MainStack.Children)
            {
                await item.Fade(0, 500, 0).StartAsync();
            }
            await Background.Blur(0, 200, 0).StartAsync();

            Frame.Navigate(typeof(Connection));
        }