HeaderedItemsControl
struct · ferroui-controls · v0.5.0
struct HeaderedItemsControl
Represents an ItemsControl with a related header.
Members
TYPEto_refregister_content_presenterTEMPLATE_PARTSheader_propertyheader_template_propertyconstructnewheaderset_headerheader_templateset_header_templateheader_presenter
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<HeaderedItemsControl>
Returns a strong reference to this object.
register_content_presenter
fn register_content_presenter(self: &Self, presenter: &ContentPresenter) -> bool
Called when a content presenter whose templated parent is this control is created. Returns true if the presenter was registered as a presenter of the control.
TEMPLATE_PARTS
const TEMPLATE_PARTS: &'static [TemplatePartAttribute]
The named parts expected in the control template.
header_property
fn header_property() -> &'static StyledProperty<Option<BoxedValue>>
Defines the Header property.
header_template_property
fn header_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
Defines the HeaderTemplate property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
header
fn header(self: &Self) -> Option<BoxedValue>
Gets or sets the content of the control's header.
set_header
fn set_header(self: &Self, value: Option<BoxedValue>)
header_template
fn header_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
Gets or sets the data template used to display the header content of the control.
set_header_template
fn set_header_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
header_presenter
fn header_presenter(self: &Self) -> Option<Ref<ContentPresenter>>
Gets the header presenter from the control's template.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtHeaderedItemsControlImplExtControlImplExtItemsControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<HeaderedItemsControl>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleVisualImplLayoutableImplInteractiveImplInputElementImplControlImplTemplatedControlImplItemsControlImplFerroObjectImplStyledElementImplHeaderedItemsControlImplIContentPresenterHost
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.