FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SelectingItemsControlSearchBehavior

    struct · ferroui-xaml-interactions-custom · v0.5.0

    struct SelectingItemsControlSearchBehavior
    

    Filters SelectingItemsControl items based on the text of a search box: the tab items whose header contains the text stay visible, the first of them is 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<SelectingItemsControlSearchBehavior>
    

    Returns a strong reference to this object.

    Source

    search_box_property

    fn search_box_property() -> &'static StyledProperty<Option<ElementRef<TextBox>>>
    

    Identifies the SearchBox property.

    Deviation (DEVIATIONS.md, Behaviors): the behavior does not own the text box, so the value is an element reference.

    Source

    no_matches_control_property

    fn no_matches_control_property() -> &'static StyledProperty<Option<ElementRef<TextBlock>>>
    

    Identifies the NoMatchesControl property.

    Deviation (DEVIATIONS.md, Behaviors): the reference registers the property for a text block and declares its accessor for any control; the port types both as the registered property, and holds the text block by an element reference.

    Source

    enable_sorting_property

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

    Identifies the EnableSorting property.

    Source

    sort_order_property

    fn sort_order_property() -> &'static StyledProperty<SortDirection>
    

    Identifies the SortOrder property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a behavior.

    Source

    fn search_box(self: &Self) -> Option<Ref<TextBox>>
    

    Gets or sets the search box control. Markup resolves a name given for it to the named element.

    Source

    fn set_search_box(self: &Self, value: impl Into<Nullable<TextBox>>)
    

    Source

    no_matches_control

    fn no_matches_control(self: &Self) -> Option<Ref<TextBlock>>
    

    Gets or sets the control displayed when no matches are found. Markup resolves a name given for it to the named element.

    Source

    set_no_matches_control

    fn set_no_matches_control(self: &Self, value: impl Into<Nullable<TextBlock>>)
    

    Source

    enable_sorting

    fn enable_sorting(self: &Self) -> bool
    

    Gets or sets a value indicating whether items should be sorted.

    Source

    set_enable_sorting

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

    Source

    sort_order

    fn sort_order(self: &Self) -> SortDirection
    

    Gets or sets the sort order for the items.

    Source

    set_sort_order

    fn set_sort_order(self: &Self, value: SortDirection)
    

    Source

    Trait implementations

    Availability

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