FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    NavigationViewItemBase

    struct · ferroui-controls · v0.5.0

    struct NavigationViewItemBase
    

    The base of the items of a NavigationView: their content and selection (WinUI's NavigationViewItemBase). As in WinUI, it cannot be created in markup.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<NavigationViewItemBase>
    

    Returns a strong reference to this object.

    Source

    is_selected_property

    fn is_selected_property() -> &'static StyledProperty<bool>
    

    Defines the IsSelected property: whether the item is the selected item of its navigation view. false by default.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    is_selected

    fn is_selected(self: &Self) -> bool
    

    Gets whether the item is selected.

    Source

    set_is_selected

    fn set_is_selected(self: &Self, value: bool)
    

    Sets whether the item is selected.

    Source

    Trait implementations

    Availability

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