protected override void OnNavigatedTo(NavigationEventArgs e) { sideBar.Navigate(typeof(GroupsSideBar)); ProfileNavigator.ClearFrame(); LeftFrameNavigator.Navigate(typeof(GroupsView), ""); LeftFrameNavigator.ClearSubFrame(); RightFrameNavigator.Navigate(typeof(MessageHistoryView)); }
private void GroupsButton_Click(object sender, RoutedEventArgs e) { LeftFrameNavigator.Navigate(typeof(GroupsView), "groups"); if (LeftFrameNavigator.isSubFrameVisible()) { LeftFrameNavigator.ClearSubFrame(); RightFrameNavigator.NavigateToLastMessageHistory(); } if (ProfileNavigator.isFrameVisible()) { ProfileNavigator.ClearFrame(); ProfileButton.Visibility = Visibility.Visible; BackButton.Visibility = Visibility.Collapsed; } }
private void BackButton_Click(object sender, RoutedEventArgs e) { ProfileNavigator.ClearFrame(); ProfileButton.Visibility = Visibility.Visible; BackButton.Visibility = Visibility.Collapsed; }