FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ContextDialogBehavior

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

    struct ContextDialogBehavior
    

    Behavior that manages a context dialog implemented using a Popup.

    Deviation (DEVIATIONS.md, Behaviors): the events of the behavior are Rust handler lists (opened and closed, which return the subscription), declared to markup as plain events, so that the event triggers find them by name.

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

    Returns a strong reference to this object.

    Source

    dialog_content_property

    fn dialog_content_property() -> &'static StyledProperty<Option<Ref<Control>>>
    

    Identifies the DialogContent property.

    Source

    is_open_property

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

    Identifies the IsOpen property.

    Source

    placement_property

    fn placement_property() -> &'static StyledProperty<PlacementMode>
    

    Identifies the Placement property.

    Source

    is_light_dismiss_enabled_property

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

    Identifies the IsLightDismissEnabled property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a behavior.

    Source

    dialog_content

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

    Gets or sets the dialog content. This is a property of the object model, and the content of the behavior in markup.

    Source

    set_dialog_content

    fn set_dialog_content(self: &Self, value: Option<Ref<Control>>)
    

    Source

    is_open

    fn is_open(self: &Self) -> bool
    

    Gets or sets a value indicating whether the dialog is open. This is a property of the object model.

    Source

    set_is_open

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

    Source

    placement

    fn placement(self: &Self) -> PlacementMode
    

    Gets or sets the popup placement mode. This is a property of the object model.

    Source

    set_placement

    fn set_placement(self: &Self, value: PlacementMode)
    

    Source

    is_light_dismiss_enabled

    fn is_light_dismiss_enabled(self: &Self) -> bool
    

    Gets or sets a value that determines how the dialog can be dismissed. This is a property of the object model.

    Source

    set_is_light_dismiss_enabled

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

    Source

    opened

    fn opened(self: &Self, handler: impl Fn(Option<&BoxedValue>, &EventArgs) -> () + 'static) -> Rc<dyn IDisposable>
    

    Occurs when the dialog is opened.

    Source

    closed

    fn closed(self: &Self, handler: impl Fn(Option<&BoxedValue>, &EventArgs) -> () + 'static) -> Rc<dyn IDisposable>
    

    Occurs when the dialog is closed.

    Source

    Trait implementations

    Availability

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