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.
Members
TYPEto_refsearch_box_propertyno_matches_control_propertyenable_sorting_propertysort_order_propertyconstructnewsearch_boxset_search_boxno_matches_controlset_no_matches_controlenable_sortingset_enable_sortingsort_orderset_sort_order
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<SelectingItemsControlSearchBehavior>
Returns a strong reference to this object.
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.
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.
enable_sorting_property
fn enable_sorting_property() -> &'static StyledProperty<bool>
Identifies the EnableSorting property.
sort_order_property
fn sort_order_property() -> &'static StyledProperty<SortDirection>
Identifies the SortOrder property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a behavior.
search_box
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.
set_search_box
fn set_search_box(self: &Self, value: impl Into<Nullable<TextBox>>)
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.
set_no_matches_control
fn set_no_matches_control(self: &Self, value: impl Into<Nullable<TextBlock>>)
enable_sorting
fn enable_sorting(self: &Self) -> bool
Gets or sets a value indicating whether items should be sorted.
set_enable_sorting
fn set_enable_sorting(self: &Self, value: bool)
sort_order
fn sort_order(self: &Self) -> SortDirection
Gets or sets the sort order for the items.
set_sort_order
fn set_sort_order(self: &Self, value: SortDirection)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<SelectingItemsControlSearchBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.