NavigationViewItemBase
struct · ferroui-controls · v0.5.0
struct NavigationViewItemBase
The base of the items of a NavigationView: their content and
selection (WinUI's NavigationViewItemBase). As in WinUI, it cannot be created in markup.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<NavigationViewItemBase>
Returns a strong reference to this object.
is_selected_property
fn is_selected_property() -> &'static StyledProperty<bool>
Defines the IsSelected property: whether the item is the selected item of its navigation
view. false by default.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
is_selected
fn is_selected(self: &Self) -> bool
Gets whether the item is selected.
set_is_selected
fn set_is_selected(self: &Self, value: bool)
Sets whether the item is selected.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtContentControlImplExtControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<NavigationViewItemBase>StaticTypeObjectTypeSubclassable<T>StyledElementImplVisualImplLayoutableImplInteractiveImplInputElementImplControlImplTemplatedControlImplContentControlImplFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.