FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PageSelectionChangedEventArgs

    struct · ferroui-controls · v0.5.0

    struct PageSelectionChangedEventArgs
    

    Provides data for a page selection-changed event.

    View source

    Members

    new

    fn new<T: ?Sized>(routed_event: Option<&RoutedEvent<T>>, previous_page: Option<Ref<Page>>, current_page: Option<Ref<Page>>) -> Self
    

    Initializes a new instance of the PageSelectionChangedEventArgs class.

    routed_event is the routed event associated with this event args instance, previous_page the page that was selected before the change (None if no page was selected) and current_page the page that is now selected (None if the selection was cleared).

    Source

    previous_page

    fn previous_page(self: &Self) -> Option<Ref<Page>>
    

    Gets the page that was selected before the change.

    Source

    current_page

    fn current_page(self: &Self) -> Option<Ref<Page>>
    

    Gets the page that is now selected.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.