NavigatingFromEventArgs Class
Definition
Provides data for the Avalonia.Controls.Page.Navigating event.
public class NavigatingFromEventArgs
Constructors
| Name | Description |
|---|---|
| NavigatingFromEventArgs | Initializes a new instance of the Avalonia.Controls.NavigatingFromEventArgs class. |
NavigatingFromEventArgs Constructor
Initializes a new instance of the Avalonia.Controls.NavigatingFromEventArgs class.
public NavigatingFromEventArgs(Avalonia.Controls.Page destinationPage, Avalonia.Controls.NavigationType navigationType)
Parameters
destinationPage Avalonia.Controls.Page
The page that will become active after this navigation, or when popping to root.
navigationType Avalonia.Controls.NavigationType
The type of navigation that triggered this event.
Properties
| Name | Description |
|---|---|
| Cancel | Gets or sets a value indicating whether the navigation should be cancelled. |
| DestinationPage | Gets the page that will become active after this navigation. |
| NavigationType | Gets the type of navigation that triggered this event. |
Cancel Property
Gets or sets a value indicating whether the navigation should be cancelled.
public bool Cancel { get; set; }
DestinationPage Property
Gets the page that will become active after this navigation.
public Avalonia.Controls.Page DestinationPage { get; set; }
NavigationType Property
Gets the type of navigation that triggered this event.
public Avalonia.Controls.NavigationType NavigationType { get; set; }