Ejemplo n.º 1
0
 private void CloseBtn_Click(object sender, RoutedEventArgs e)
 {
     SecondStack.SetValue(Grid.ColumnProperty, 1);
     SecondStack.SetValue(Grid.ColumnSpanProperty, 1);
     FirstStack.SetValue(Grid.ColumnSpanProperty, 1);
     FirstStack.Visibility      = Visibility.Visible;
     SecondStack.Visibility     = Visibility.Visible;
     DetailSplitView.IsPaneOpen = false;
 }
Ejemplo n.º 2
0
        private async void DoctorGrid_ItemClick(object sender, ItemClickEventArgs e)
        {
            //Frame parentFrame = Window.Current.Content as Frame;

            //MainPage mp = parentFrame.Content as MainPage;
            //StackPanel grid = mp.Content as StackPanel;
            //Frame my_frame = grid.FindName("myFrame") as Frame;
            DetailSplitView.IsPaneOpen = true;
            SecondStack.Visibility     = Visibility.Collapsed;
            FirstStack.SetValue(Grid.ColumnSpanProperty, 2);
            await viewModel.AddDocSearchResult(new Doc_Search()
            {
                doc_id = (e.ClickedItem as Doctor).ID, user_id = 1
            });

            HospDocFrame.Navigate(typeof(SelectedDocDetailView),
                                  new DocNavEventArgs()
            {
                val = (e.ClickedItem as Doctor).ID, view = this, mainPage = mp
            }
                                  , new SuppressNavigationTransitionInfo());
            HospDocFrame.BackStack.Clear();
        }