/// <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)); }
/// <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; }
/// <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; }
/// <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; }