FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MenuFlyout

    struct · ferroui-controls · v0.5.0

    struct MenuFlyout
    

    A flyout that displays a menu.

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

    Returns a strong reference to this object.

    Source

    items_source_property

    fn items_source_property() -> &'static StyledProperty<Option<ItemsSource>>
    

    Defines the ItemsSource property.

    Source

    item_template_property

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

    Defines the ItemTemplate property.

    Source

    item_container_theme_property

    fn item_container_theme_property() -> &'static StyledProperty<Option<Ref<ControlTheme>>>
    

    Defines the ItemContainerTheme property.

    Source

    flyout_presenter_theme_property

    fn flyout_presenter_theme_property() -> &'static StyledProperty<Option<Ref<ControlTheme>>>
    

    Defines the FlyoutPresenterTheme property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a menu flyout.

    Source

    flyout_presenter_classes

    fn flyout_presenter_classes(self: &Self) -> Classes
    

    The classes collection to apply to the flyout presenter this flyout is hosting.

    Source

    items

    fn items(self: &Self) -> ItemCollection
    

    The items of the menu flyout.

    Source

    items_source

    fn items_source(self: &Self) -> Option<ItemsSource>
    

    Gets or sets the items of the menu flyout.

    Source

    set_items_source

    fn set_items_source(self: &Self, value: Option<ItemsSource>)
    

    Source

    item_template

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

    Gets or sets the template used for the items.

    Source

    set_item_template

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

    Source

    item_container_theme

    fn item_container_theme(self: &Self) -> Option<Ref<ControlTheme>>
    

    Gets or sets the control theme that is applied to the container element generated for each item.

    Source

    set_item_container_theme

    fn set_item_container_theme(self: &Self, value: impl Into<Nullable<ControlTheme>>)
    

    Source

    flyout_presenter_theme

    fn flyout_presenter_theme(self: &Self) -> Option<Ref<ControlTheme>>
    

    Gets or sets the control theme that is applied to the container element generated for the flyout presenter.

    Source

    set_flyout_presenter_theme

    fn set_flyout_presenter_theme(self: &Self, value: impl Into<Nullable<ControlTheme>>)
    

    Source

    Trait implementations

    Availability

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