FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TabControl

    struct · ferroui-controls · v0.5.0

    struct TabControl
    

    A tab control that displays a tab strip along with the content of the selected tab.

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

    Returns a strong reference to this object.

    Source

    register_content_presenter

    fn register_content_presenter(self: &Self, presenter: &ContentPresenter) -> bool
    

    Called when a ContentPresenter is registered with the control.

    Source

    TEMPLATE_PARTS

    const TEMPLATE_PARTS: &'static [TemplatePartAttribute]
    

    The named parts expected in the control template.

    Source

    tab_strip_placement_property

    fn tab_strip_placement_property() -> &'static StyledProperty<Dock>
    

    Defines the TabStripPlacement property.

    Source

    horizontal_content_alignment_property

    fn horizontal_content_alignment_property() -> &'static StyledProperty<HorizontalAlignment>
    

    Defines the HorizontalContentAlignment property.

    Source

    vertical_content_alignment_property

    fn vertical_content_alignment_property() -> &'static StyledProperty<VerticalAlignment>
    

    Defines the VerticalContentAlignment property.

    Source

    content_template_property

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

    Defines the ContentTemplate property.

    Source

    selected_content_property

    fn selected_content_property() -> &'static DirectProperty<TabControl, Option<BoxedValue>>
    

    Defines the SelectedContent property.

    Source

    selected_content_template_property

    fn selected_content_template_property() -> &'static DirectProperty<TabControl, Option<Rc<dyn IDataTemplate>>>
    

    Defines the SelectedContentTemplate property.

    Source

    page_transition_property

    fn page_transition_property() -> &'static StyledProperty<Option<Rc<dyn IPageTransition>>>
    

    Defines the PageTransition property.

    Source

    indicator_template_property

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

    Defines the IndicatorTemplate property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    horizontal_content_alignment

    fn horizontal_content_alignment(self: &Self) -> HorizontalAlignment
    

    Gets or sets the horizontal alignment of the content within the control.

    Source

    set_horizontal_content_alignment

    fn set_horizontal_content_alignment(self: &Self, value: HorizontalAlignment)
    

    Source

    vertical_content_alignment

    fn vertical_content_alignment(self: &Self) -> VerticalAlignment
    

    Gets or sets the vertical alignment of the content within the control.

    Source

    set_vertical_content_alignment

    fn set_vertical_content_alignment(self: &Self, value: VerticalAlignment)
    

    Source

    tab_strip_placement

    fn tab_strip_placement(self: &Self) -> Dock
    

    Gets or sets the tabstrip placement of the TabControl.

    Source

    set_tab_strip_placement

    fn set_tab_strip_placement(self: &Self, value: Dock)
    

    Source

    content_template

    fn content_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
    

    Gets or sets the default data template used to display the content of the selected tab.

    Source

    set_content_template

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

    Source

    selected_content

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

    Gets the content of the selected tab.

    Source

    selected_content_template

    fn selected_content_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
    

    Gets the content template for the selected tab.

    Source

    page_transition

    fn page_transition(self: &Self) -> Option<Rc<dyn IPageTransition>>
    

    Gets or sets the page transition to use when switching tabs.

    Source

    set_page_transition

    fn set_page_transition(self: &Self, value: Option<Rc<dyn IPageTransition>>)
    

    Source

    indicator_template

    fn indicator_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
    

    Gets or sets the data template used to render the selection indicator on each tab item.

    Source

    set_indicator_template

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

    Source

    Trait implementations

    Availability

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