Example #1
0
        private async void CloseWhatsNew_Tapped(object sender, RoutedEventArgs e)
        {
            await WhatsNewPopup.StartCompositionFadeScaleAnimationAsync(1, 0, 1, 1.1f, 150, null, 0, EasingFunctionNames.SineEaseInOut);

            ViewModel.isLoading      = false;
            WhatsNewPopup.Visibility = Visibility.Collapsed;
        }
Example #2
0
 private async Task ShowWhatsNewPopup()
 {
     WhatsNewPopup.SetVisualOpacity(0);
     WhatsNewPopup.Visibility = Visibility.Visible;
     ViewModel.isLoading      = true;
     await WhatsNewPopup.StartCompositionFadeScaleAnimationAsync(0, 1, 1.3f, 1, 160, null, 0, EasingFunctionNames.SineEaseInOut);
 }
Example #3
0
        private async void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            await ViewModel.Initialize(AppFrame);

            if (ViewModel.isLoggedin)
            {
                await SimpleIoc.Default.GetInstance <IAsyncNavigationService>().NavigateAsync(typeof(FeedView), "News Feed");

                await ViewModel.CheckForUnreadNotifications();

                if (WhatsNewDisplayService.IsNewVersion())
                {
                    ViewModel.isLoading = true;
                    WhatsNewPopup.SetVisualOpacity(0);
                    WhatsNewPopup.Visibility = Visibility.Visible;
                    await WhatsNewPopup.StartCompositionFadeScaleAnimationAsync(0, 1, 1.1f, 1, 150, null, 0, EasingFunctionNames.SineEaseInOut);
                }
            }

            notifManager = new LocalNotificationManager(NotificationGrid);

            ConfigureWindowBlur();
            await ConfigureHamburgerMenuBlur();
        }