private void Meeting_Loaded(object sender, RoutedEventArgs e) { parent = this.GetParent <Win.View.Main>(); if (!parent.IsNull()) { //parent.MeetingId = viewModel.Meeting.Id; parent.CloseAction = (obj, closeEvent) => { viewModel?.Cancel(); }; } }
/// <summary> /// Main面包屑导航 /// </summary> /// <param name="main"></param> /// <param name="data"></param> public static void MainNavigationCrumbsAction(Win.View.Main main, CrumbData data) { main.CheckNull(); data.CheckNull(); if (!main.IsNull()) { if (data.IsBack) { main.mainFrame.GoBack(); } if (data.IsHome) { main.ShowMeeting(); } } }