Skip to main content

NavigatingFromEventArgs Class

Definition​

Assembly:Avalonia.Controls
Package:Avalonia

Provides data for the Avalonia.Controls.Page.Navigating event.

public class NavigatingFromEventArgs

Inheritance: EventArgs -> NavigatingFromEventArgs

Constructors​

NameDescription
NavigatingFromEventArgsInitializes a new instance of the Avalonia.Controls.NavigatingFromEventArgs class.

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​

NameDescription
CancelGets or sets a value indicating whether the navigation should be cancelled.
DestinationPageGets the page that will become active after this navigation.
NavigationTypeGets 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; }

Gets the type of navigation that triggered this event.

public Avalonia.Controls.NavigationType NavigationType { get; set; }