INavigation Interface
Definition
Provides navigation operations for stack-based and modal page navigation. Exposed via Avalonia.Controls.Page.Navigation when a page is hosted in a NavigationPage.
public interface INavigation
Methods
| Name | Description |
|---|---|
| InsertPage | Inserts page immediately before before in the stack. Does not change the currently visible page. |
| PopAllModalsAsync (2 overloads) | Pops all modal pages, animating only the topmost dismissal. |
| PopAsync (2 overloads) | Pops the top page using the host's default transition. |
| PopModalAsync (2 overloads) | Pops the top modal page using the host's modal transition. |
| PopToPageAsync (2 overloads) | Pops all pages above page using the host's default transition. |
| PopToRootAsync (2 overloads) | Pops all pages above the root using the host's default transition. |
| PushAsync (2 overloads) | Pushes page using the host's default transition. |
| PushModalAsync (2 overloads) | Pushes page as a modal using the host's modal transition. |
| RemovePage | Removes page from the navigation stack without animation. If page is not in the stack the call is a no-op. |
| ReplaceAsync (2 overloads) | Replaces the current top page with page using the host's default transition. |
InsertPage Method
Inserts page immediately before before in the stack.
Does not change the currently visible page.
public void InsertPage(Avalonia.Controls.Page page, Avalonia.Controls.Page before)
Parameters
before Avalonia.Controls.Page
Exceptions
PopAllModalsAsync overloads
PopAllModalsAsync Method
Pops all modal pages, animating only the topmost dismissal.
public System.Threading.Tasks.Task PopAllModalsAsync()
Returns
System.Threading.Tasks.Task
PopAllModalsAsync Method
Pops all modal pages using transition. Pass for no animation.
public System.Threading.Tasks.Task PopAllModalsAsync(Avalonia.Animation.IPageTransition transition)
Parameters
transition Avalonia.Animation.IPageTransition
Returns
System.Threading.Tasks.Task
PopAsync overloads
PopAsync Method
Pops the top page using the host's default transition.
public System.Threading.Tasks.Task<Avalonia.Controls.Page> PopAsync()
Returns
System.Threading.Tasks.Task<Avalonia.Controls.Page>
PopAsync Method
Pops the top page using transition. Pass for no animation.
public System.Threading.Tasks.Task<Avalonia.Controls.Page> PopAsync(Avalonia.Animation.IPageTransition transition)
Parameters
transition Avalonia.Animation.IPageTransition
Returns
System.Threading.Tasks.Task<Avalonia.Controls.Page>
PopModalAsync overloads
PopModalAsync Method
Pops the top modal page using the host's modal transition.
public System.Threading.Tasks.Task<Avalonia.Controls.Page> PopModalAsync()
Returns
System.Threading.Tasks.Task<Avalonia.Controls.Page>