FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    HideAttachedFlyoutBehavior

    struct · ferroui-xaml-interactions-custom · v0.5.0

    struct HideAttachedFlyoutBehavior
    

    Hides the attached flyout of the associated control when is_flyout_open becomes false.

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

    Returns a strong reference to this object.

    Source

    is_flyout_open_property

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

    Identifies the IsFlyoutOpen property.

    Deviation (DEVIATIONS.md, Behaviors): the reference registers this property with the button behavior that hides a flyout (ButtonHideFlyoutBehavior) as its owner; here it is registered on this class, which declares it (defect corrected).

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a behavior.

    Source

    is_flyout_open

    fn is_flyout_open(self: &Self) -> bool
    

    Gets or sets whether the attached flyout is open; setting it to false hides the flyout. This is a property of the object model.

    Source

    set_is_flyout_open

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

    Source

    Trait implementations

    Availability

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