private void NavigateMasterDetail(Page master, Page detail) { PageContainerMasterDetailSplitter contentPage = new PageContainerMasterDetailSplitter(); contentPage.FrameMaster.Navigate(master); contentPage.FrameDetail.Navigate(detail); FramePlaceHolder.Navigate(contentPage); }
private void NavigateSimplePage(Page contentPage) { PageSimpleContainer pageSimpleContainer = new PageSimpleContainer(); pageSimpleContainer.FrameSimpleContent.Navigate(contentPage); FramePlaceHolder.Navigate(pageSimpleContainer); /*grdGridContent.RowDefinitions[0].Height = new GridLength(200, GridUnitType.Star); * grdGridContent.RowDefinitions[1].Height = new GridLength(0); * grdSplitter.Visibility = Visibility.Hidden; * FrameDetail.Content = null;*/ }
private void NavigateMasterDetailDetail(Page master, Page detailFromMaster, Page detailFromDetail) { /* this works as well. But i'm using the 2 splitter page to avoid duplication * PageContainerMasterDetailDetailSplitter pageContainerMasterDetailDetailSplitter = new PageContainerMasterDetailDetailSplitter(); * pageContainerMasterDetailDetailSplitter.FrameMaster.Navigate(master); * pageContainerMasterDetailDetailSplitter.FrameDetail.Navigate(detailFromMaster); * pageContainerMasterDetailDetailSplitter.FrameDetailDetail.Navigate(detailFromDetail); * FramePlaceHolder.Navigate(pageContainerMasterDetailDetailSplitter);*/ PageContainerMasterDetailSplitter contentPageMasterDetailA = new PageContainerMasterDetailSplitter(); contentPageMasterDetailA.FrameMaster.Navigate(master); PageContainerMasterDetailSplitter contentPageMasterDetailB = new PageContainerMasterDetailSplitter(); contentPageMasterDetailB.FrameMaster.Navigate(detailFromMaster); contentPageMasterDetailB.FrameDetail.Navigate(detailFromDetail); contentPageMasterDetailA.FrameDetail.Navigate(contentPageMasterDetailB); FramePlaceHolder.Navigate(contentPageMasterDetailA); }