FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ListItemAutomationPeer

    struct · ferroui-controls · v0.5.0

    struct ListItemAutomationPeer
    

    An automation peer which represents a selectable item of a list (a ListBoxItem, a TabItem).

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

    Returns a strong reference to this object.

    Source

    construct

    fn construct(owner: &ContentControl) -> Self
    

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

    Source

    new

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

    Initializes a new peer of owner.

    Source

    is_selected

    fn is_selected(self: &Self) -> bool
    

    Gets a value that indicates whether the item is selected (the selection item provider contract).

    Source

    selection_container

    fn selection_container(self: &Self) -> Option<Rc<dyn ISelectionProvider>>
    

    Gets the selection provider of the container of the item (the selection item provider contract).

    Source

    select

    fn select(self: &Self) -> Result<(), AutomationError>
    

    Clears any existing selection and then selects the item (the selection item provider contract).

    Source

    Trait implementations

    Availability

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