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.
Members
TYPEto_refdialog_content_propertyis_open_propertyplacement_propertyis_light_dismiss_enabled_propertyconstructnewdialog_contentset_dialog_contentis_openset_is_openplacementset_placementis_light_dismiss_enabledset_is_light_dismiss_enabledopenedclosed
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ContextDialogBehavior>
Returns a strong reference to this object.
dialog_content_property
fn dialog_content_property() -> &'static StyledProperty<Option<Ref<Control>>>
Identifies the DialogContent property.
is_open_property
fn is_open_property() -> &'static StyledProperty<bool>
Identifies the IsOpen property.
placement_property
fn placement_property() -> &'static StyledProperty<PlacementMode>
Identifies the Placement property.
is_light_dismiss_enabled_property
fn is_light_dismiss_enabled_property() -> &'static StyledProperty<bool>
Identifies the IsLightDismissEnabled property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a behavior.
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.
set_dialog_content
fn set_dialog_content(self: &Self, value: Option<Ref<Control>>)
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.
set_is_open
fn set_is_open(self: &Self, value: bool)
placement
fn placement(self: &Self) -> PlacementMode
Gets or sets the popup placement mode. This is a property of the object model.
set_placement
fn set_placement(self: &Self, value: PlacementMode)
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.
set_is_light_dismiss_enabled
fn set_is_light_dismiss_enabled(self: &Self, value: bool)
opened
fn opened(self: &Self, handler: impl Fn(Option<&BoxedValue>, &EventArgs) -> () + 'static) -> Rc<dyn IDisposable>
Occurs when the dialog is opened.
closed
fn closed(self: &Self, handler: impl Fn(Option<&BoxedValue>, &EventArgs) -> () + 'static) -> Rc<dyn IDisposable>
Occurs when the dialog is closed.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeAttachedToVisualTreeBehaviorImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherDisposingBehaviorImplExtStyledElementBehaviorImplExtDerefUpcast<T>Upcast<ContextDialogBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplStyledElementBehaviorImplDisposingBehaviorImplFerroObjectImplAttachedToVisualTreeBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.