public void PageGoBack(MenuControl otherPage) { // load the page into the contentcontrol //((PageContainer)((DockPanel)((ContentControl)Parent).Parent).Parent).GoBack(); //Tools.FindVisualParent<PageContainer>(this).GoBack(); Tools.FindVisualParent <PageContainer>(HHH).LoadControl(otherPage, true); }
/// <summary> /// deze functie laadt het menu en set de pagina-specifieke waardes /// </summary> /// <param name="menucontrol"></param> public void LoadMenu(MenuControl menucontrol) { lblPageTitle.Content = menucontrol.PageTitle; lblPageSubtitle.Content = menucontrol.PageSubtitle.ToStringTrimmed(); btnGereed.Content = menucontrol.PageOKButtonText; btnTerug.Content = menucontrol.PageBackButtonText; btnGereed.Visibility = menucontrol.PageGereedButtonVisibility; try { //menucontrol.PageReloaded(); LET OP: Juraci } catch { // testen hoevaak we hierin komen //System.Windows.MessageBox.Show("als dit vaker gebeurt, dan weghalen"); } SetBreadcrumb(); }