PageSelectionChangedEventArgs Class
Definition
Provides data for a page selection-changed event.
public class PageSelectionChangedEventArgs
Constructors
| Name | Description |
|---|---|
| PageSelectionChangedEventArgs | Initializes 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
| Name | Description |
|---|---|
| CurrentPage | Gets the page that is now selected. |
| PreviousPage | Gets the page that was selected before the change. |
| Handled | Gets or sets a value indicating whether the routed event has already been handled. Inherited from RoutedEventArgs. |
| Route | Gets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event. Inherited from RoutedEventArgs. |
| RoutedEvent | Gets or sets the routed event associated with these event args. Inherited from RoutedEventArgs. |
| Source | Gets 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; }