public void NavigateToNoteEntryPage(Note note) { noteEntryPage = new Notes.UWP.Views.NoteEntryPage { BindingContext = note }; this.Frame.Navigate(noteEntryPage); }
public void NavigateToNoteEntryPage(Note note) { var noteEntryPage = new NoteEntryPage { BindingContext = note }.CreateViewController(); noteEntryPage.Title = "Note Entry"; _navigation.PushViewController(noteEntryPage, true); }
void OnBackRequested(object sender, BackRequestedEventArgs e) { Frame rootFrame = Window.Current.Content as Frame; if (rootFrame.CanGoBack) { e.Handled = true; rootFrame.GoBack(); noteEntryPage = null; } }
public void NavigateToNoteEntryPage(Note note) { noteEntryPage = new Notes.UWP.Views.NoteEntryPage { BindingContext = note, // Set the parent so that the app-level resource dictionary can be located. Parent = Xamarin.Forms.Application.Current }; this.Frame.Navigate(noteEntryPage); noteEntryPage.Parent = null; }
public void NavigateToNoteEntryPage(Note note) { AndroidX.Fragment.App.Fragment noteEntryPage = new NoteEntryPage { BindingContext = note }.CreateSupportFragment(this); SupportFragmentManager .BeginTransaction() .AddToBackStack(null) .Replace(Resource.Id.fragment_frame_layout, noteEntryPage) .Commit(); }
public void NavigateToNoteEntryPage(Note note) { NoteEntryPage noteEntryPage = new NoteEntryPage { BindingContext = note, // Set the parent so that the app-level resource dictionary can be located. Parent = Xamarin.Forms.Application.Current }; var noteEntryViewController = noteEntryPage.CreateViewController(); noteEntryViewController.Title = "Note Entry"; _navigation.PushViewController(noteEntryViewController, true); noteEntryPage.Parent = null; }
public void NavigateToNoteEntryPage(Note note) { NoteEntryPage noteEntryPage = new NoteEntryPage { BindingContext = note, // Set the parent so that the app-level resource dictionary can be located. Parent = Xamarin.Forms.Application.Current }; AndroidX.Fragment.App.Fragment noteEntryFragment = noteEntryPage.CreateSupportFragment(this); SupportFragmentManager .BeginTransaction() .AddToBackStack(null) .Replace(Resource.Id.fragment_frame_layout, noteEntryFragment) .Commit(); noteEntryPage.Parent = null; }
public void NavigateBack() { this.Frame.GoBack(); noteEntryPage = null; }