Ejemplo n.º 1
0
        internal void OpenSettings(SettingsPageType page)
        {
            Analytics.TrackEvent("DiscordPage_OpenSettings");

            SettingsOverlayGrid.Visibility = Visibility.Visible;

            CheckSettingsPane();

            if (ActualWidth > 768)
            {
                OpenSettingsDesktopStoryboard.Begin();
            }
            else
            {
                OpenSettingsMobileStoryboard.Begin();
            }

            SettingsGrid.Navigate(typeof(SettingsPage), page, new SuppressNavigationTransitionInfo());
        }
Ejemplo n.º 2
0
        private async void SettingsItem_Tapped(object sender, TappedRoutedEventArgs e)
        {
            if (await WindowsHelloManager.VerifyAsync(Constants.VERIFY_SETTINGS, "Verify your identity to open settings."))
            {
                SettingsOverlayGrid.Visibility = Visibility.Visible;

                CheckSettingsPane();

                if (ActualWidth > 768)
                {
                    OpenSettingsDesktopStoryboard.Begin();
                }
                else
                {
                    OpenSettingsMobileStoryboard.Begin();
                }
            }

            SettingsGrid.Navigate(typeof(SettingsPage), null, new SuppressNavigationTransitionInfo());
        }
Ejemplo n.º 3
0
        private async void SettingsItem_Tapped(object sender, TappedRoutedEventArgs e)
        {
            var loader = ResourceLoader.GetForViewIndependentUse();

            if (await WindowsHelloManager.VerifyAsync(Constants.VERIFY_SETTINGS, loader.GetString("VerifySettingsDisplayReason")))
            {
                SettingsOverlayGrid.Visibility = Visibility.Visible;

                CheckSettingsPane();

                if (ActualWidth > 768)
                {
                    OpenSettingsDesktopStoryboard.Begin();
                }
                else
                {
                    OpenSettingsMobileStoryboard.Begin();
                }
            }

            SettingsGrid.Navigate(typeof(SettingsPage), null, new SuppressNavigationTransitionInfo());
        }
Ejemplo n.º 4
0
 private void CloseSettingsStoryboard_Completed(object sender, object e)
 {
     SettingsOverlayGrid.Visibility = Visibility.Collapsed;
     SettingsGrid.Navigate(typeof(Page), null, new SuppressNavigationTransitionInfo());
 }