FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ShowFlyoutAction

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

    struct ShowFlyoutAction
    

    Shows the flyout of the target control (or of the sender) at that control.

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

    Returns a strong reference to this object.

    Source

    flyout_property

    fn flyout_property() -> &'static StyledProperty<Option<Ref<FlyoutBase>>>
    

    Identifies the Flyout property.

    Source

    target_control_property

    fn target_control_property() -> &'static StyledProperty<Option<ElementRef<Control>>>
    

    Identifies the TargetControl property.

    Deviation (DEVIATIONS.md, Behaviors): the action does not own its target, so the value is an element reference.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates an action.

    Source

    target_control

    fn target_control(self: &Self) -> Option<Ref<Control>>
    

    Gets or sets the target control. If not set, the sender is used. Markup resolves a name given for it to the named element.

    Source

    set_target_control

    fn set_target_control(self: &Self, value: impl Into<Nullable<Control>>)
    

    Source

    flyout

    fn flyout(self: &Self) -> Option<Ref<FlyoutBase>>
    

    Gets or sets the flyout. If not set, the flyout attached to the control is used. This is a property of the object model.

    Source

    set_flyout

    fn set_flyout(self: &Self, value: impl Into<Nullable<FlyoutBase>>)
    

    Source

    Trait implementations

    Availability

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