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 -> 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.Controls.Page previousPage, Avalonia.Controls.Page currentPage)

Parameters

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.

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; }