コード例 #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());
        }
コード例 #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());
        }
コード例 #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());
        }