Skip to main content

PageSelectionChangedEventArgs Class

Definition

Assembly:Avalonia.Controls
Package:Avalonia

Provides data for a page selection-changed event.

public class PageSelectionChangedEventArgs

Inheritance: EventArgs -> RoutedEventArgs -> PageSelectionChangedEventArgs

Constructors

NameDescription
PageSelectionChangedEventArgsInitializes a new instance of the Avalonia.Controls.PageSelectionChangedEventArgs class.

PageSelectionChangedEventArgs Constructor

Initializes a new instance of the Avalonia.Controls.PageSelectionChangedEventArgs class.

public PageSelectionChangedEventArgs(Avalonia.Interactivity.RoutedEvent routedEvent, Avalonia.Controls.Page previousPage, Avalonia.Controls.Page currentPage)

Parameters

routedEvent Avalonia.Interactivity.RoutedEvent

The routed event associated with this event args instance.

previousPage Avalonia.Controls.Page

The page that was selected before the change, or if no page was selected.

currentPage Avalonia.Controls.Page

The page that is now selected, or if selection was cleared.

Properties

NameDescription
CurrentPageGets the page that is now selected.
PreviousPageGets the page that was selected before the change.
HandledGets or sets a value indicating whether the routed event has already been handled. Inherited from RoutedEventArgs.
RouteGets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event. Inherited from RoutedEventArgs.
RoutedEventGets or sets the routed event associated with these event args. Inherited from RoutedEventArgs.
SourceGets or sets the source object that raised the routed event. Inherited from RoutedEventArgs.

CurrentPage Property

Gets the page that is now selected.

public Avalonia.Controls.Page CurrentPage { get; set; }

PreviousPage Property

Gets the page that was selected before the change.

public Avalonia.Controls.Page PreviousPage { get; set; }