FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ListBox

    struct · ferroui-controls · v0.5.0

    struct ListBox
    

    An ItemsControl in which individual items can be selected.

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

    Returns a strong reference to this object.

    Source

    TEMPLATE_PARTS

    const TEMPLATE_PARTS: &'static [TemplatePartAttribute]
    

    The named parts expected in the control template: the scrollable that scrolls the items.

    Source

    scroll_property

    fn scroll_property() -> &'static DirectProperty<ListBox, Option<Ref<InputElement>>>
    

    Defines the Scroll property.

    Source

    selected_items_property

    fn selected_items_property() -> &'static DirectProperty<SelectingItemsControl, Option<SelectedItemsList>>
    

    Defines the SelectedItems property.

    Source

    selection_property

    fn selection_property() -> &'static DirectProperty<SelectingItemsControl, Option<Rc<dyn ISelectionModel>>>
    

    Defines the Selection property.

    Source

    selection_mode_property

    fn selection_mode_property() -> &'static StyledProperty<SelectionMode>
    

    Defines the SelectionMode property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    scroll

    fn scroll(self: &Self) -> Option<Ref<InputElement>>
    

    Gets the scroll information for the ListBox: the element of the template that implements the scrollable contract (see InputElement::as_scrollable).

    Source

    select_all

    fn select_all(self: &Self)
    

    Selects all items in the ListBox.

    Source

    unselect_all

    fn unselect_all(self: &Self)
    

    Deselects all items in the ListBox.

    Source

    Trait implementations

    Availability

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