FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    HeaderedItemsControl

    struct · ferroui-controls · v0.5.0

    struct HeaderedItemsControl
    

    Represents an ItemsControl with a related header.

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

    Returns a strong reference to this object.

    Source

    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.

    Source

    TEMPLATE_PARTS

    const TEMPLATE_PARTS: &'static [TemplatePartAttribute]
    

    The named parts expected in the control template.

    Source

    header_property

    fn header_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Defines the Header property.

    Source

    header_template_property

    fn header_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
    

    Defines the HeaderTemplate property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    header

    fn header(self: &Self) -> Option<BoxedValue>
    

    Gets or sets the content of the control's header.

    Source

    set_header

    fn set_header(self: &Self, value: Option<BoxedValue>)
    

    Source

    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.

    Source

    set_header_template

    fn set_header_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
    

    Source

    header_presenter

    fn header_presenter(self: &Self) -> Option<Ref<ContentPresenter>>
    

    Gets the header presenter from the control's template.

    Source

    Trait implementations

    Availability

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