コード例 #1
0
        /// <summary>
        ///		Invoked when the transition from another page.
        /// </summary>
        /// <param name="e">Event arguments</param>
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            await mainViewModel.InitializeModel();

            IconFontPageContentFrame.Navigate(typeof(IconFontCollectionView));
        }
コード例 #2
0
        /// <summary>
        ///		Invoked when user press <see cref="SwitchIconFontFavoritesViewButton"/> button.
        /// </summary>
        private void SwitchIconFontFavoritesViewButton_Click(object sender, RoutedEventArgs e)
        {
            var iconFontFavoritesView = IconFontPageContentFrame.Content as IconFontFavotitesView;

            if (iconFontFavoritesView != null)
            {
                iconFontFavoritesView.GridViewJumpToFirstItem();
            }
            else
            {
                IconFontPageContentFrame.Navigate(typeof(IconFontFavotitesView));
            }
            HamburgerButton.IsChecked = false;
        }
コード例 #3
0
 /// <summary>
 ///		Invoked when user press <see cref="SwitchIconFontCollectionViewButton"/> button.
 /// </summary>
 private void SwitchIconFontCollectionViewButton_Click(object sender, RoutedEventArgs e)
 {
     // When the current page is the collection view ...
     // ※Satisfy the condition is of the if statement, but only when the current page is of the collection view.
     if (!IconFontPageContentFrame.CanGoBack)
     {
         (IconFontPageContentFrame.Content as IconFontCollectionView)?.GridViewJumpToFirstItem();
     }
     // From the collection view page when, it has been a transition to another page
     else
     {
         while (IconFontPageContentFrame.CanGoBack)
         {
             IconFontPageContentFrame.GoBack();
         }
     }
     HamburgerButton.IsChecked = false;
 }
コード例 #4
0
 /// <summary>
 ///		Invoked when user press <see cref=" SwitchSettingAboutButton"/> button.
 /// </summary>
 private void SwitchSettingAboutButton_Click(object sender, RoutedEventArgs e)
 {
     IconFontPageContentFrame.Navigate(typeof(AppSettingView));
     HamburgerButton.IsChecked = false;
 }
コード例 #5
0
 /// <summary>
 ///		Invoked when user press <see cref="SwitchUserGuideButton"/> button.
 /// </summary>
 private void SwitchUserGuideButton_Click(object sender, RoutedEventArgs e)
 {
     IconFontPageContentFrame.Navigate(typeof(UserGuidePage));
     HamburgerButton.IsChecked = false;
 }