FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    NavigationViewItemAutomationPeer

    struct · ferroui-controls · v0.5.0

    struct NavigationViewItemAutomationPeer
    

    The automation peer of a NavigationViewItem: a list item (a tab item in the top pane) with the selection item pattern and, for an item with children, the expand and collapse pattern; like WinUI's peer at the pin it has no invoke pattern.

    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<NavigationViewItemAutomationPeer>
    

    Returns a strong reference to this object.

    Source

    new

    fn new(owner: &NavigationViewItem) -> Ref<Self>
    

    Creates the peer of owner.

    Source

    owner

    fn owner(self: &Self) -> Ref<NavigationViewItem>
    

    Gets the item of the peer.

    Source

    expand_collapse_state

    fn expand_collapse_state(self: &Self) -> ExpandCollapseState
    

    Gets whether the item is expanded.

    Source

    Trait implementations

    Availability

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