protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); if (e.Parameter is NavigationParameter pm) { DataContext = SimpleIoc.Default.GetInstance(pm.ViewModelType); EntryFrame.Navigate(pm.ViewFrameType); } }
private void BtnGeneralEntry_Click(object sender, RoutedEventArgs e) { EntryFrame.Navigate(new NewGeneralEntryPage()); }
private void BtnDiary_Click(object sender, RoutedEventArgs e) { EntryFrame.Navigate(new FormNewEntry()); }