FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TabbedPage

    struct · ferroui-controls · v0.5.0

    struct TabbedPage
    

    A page that displays its child pages through a tab strip.

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

    Returns a strong reference to this object.

    Source

    tab_placement_property

    fn tab_placement_property() -> &'static StyledProperty<TabPlacement>
    

    Defines the TabPlacement property.

    Source

    is_keyboard_navigation_enabled_property

    fn is_keyboard_navigation_enabled_property() -> &'static StyledProperty<bool>
    

    Defines the IsKeyboardNavigationEnabled property.

    Source

    is_gesture_enabled_property

    fn is_gesture_enabled_property() -> &'static StyledProperty<bool>
    

    Defines the IsGestureEnabled 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

    is_tab_enabled_property

    fn is_tab_enabled_property() -> &'static AttachedProperty<bool>
    

    Defines the IsTabEnabled attached property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Initializes a new instance of the TabbedPage class.

    Source

    get_is_tab_enabled

    fn get_is_tab_enabled(page: &Page) -> bool
    

    Gets the value of the IsTabEnabled attached property for a page: true if the tab is enabled.

    Source

    set_is_tab_enabled

    fn set_is_tab_enabled(page: &Page, value: bool)
    

    Sets the value of the IsTabEnabled attached property for a page. Disabled tabs are skipped during keyboard and swipe navigation.

    Source

    tab_placement

    fn tab_placement(self: &Self) -> TabPlacement
    

    Gets or sets the tab bar placement.

    Source

    set_tab_placement

    fn set_tab_placement(self: &Self, value: TabPlacement)
    

    Source

    is_keyboard_navigation_enabled

    fn is_keyboard_navigation_enabled(self: &Self) -> bool
    

    Gets or sets whether keyboard navigation can switch tabs.

    Source

    set_is_keyboard_navigation_enabled

    fn set_is_keyboard_navigation_enabled(self: &Self, value: bool)
    

    Source

    is_gesture_enabled

    fn is_gesture_enabled(self: &Self) -> bool
    

    Gets or sets whether swipe gestures can be used to navigate between tabs.

    Defaults to false because tab strips do not respond to swipe gestures on most platforms (iOS, desktop). Enable this only when the host platform and the content inside each tab page do not conflict with horizontal swipe input.

    Source

    set_is_gesture_enabled

    fn set_is_gesture_enabled(self: &Self, value: bool)
    

    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.

    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.