示例#1
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            sideBar.Navigate(typeof(GroupsSideBar));

            ProfileNavigator.ClearFrame();
            LeftFrameNavigator.Navigate(typeof(GroupsView), "");
            LeftFrameNavigator.ClearSubFrame();
            RightFrameNavigator.Navigate(typeof(MessageHistoryView));
        }
示例#2
0
        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;
            }
        }
示例#3
0
 private void BackButton_Click(object sender, RoutedEventArgs e)
 {
     ProfileNavigator.ClearFrame();
     ProfileButton.Visibility = Visibility.Visible;
     BackButton.Visibility    = Visibility.Collapsed;
 }