DialogOpenedTrigger
struct · ferroui-xaml-interactions-custom · v0.5.0
struct DialogOpenedTrigger
Executes actions when the dialog window is opened.
The trigger listens to the window source_object while the
associated control is in the visual tree; the actions run with the args of the event
(EventArgs) as the parameter.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<DialogOpenedTrigger>
Returns a strong reference to this object.
source_object_property
fn source_object_property() -> &'static StyledProperty<Option<ElementRef<Window>>>
Identifies the SourceObject property.
Deviation (DEVIATIONS.md, Behaviors): the trigger does not own the window, so the value is an element reference.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a trigger.
source_object
fn source_object(self: &Self) -> Option<Ref<Window>>
Gets or sets the source object from which this behavior listens for events. This is a property of the object model. Markup resolves a name given for it to the named element.
set_source_object
fn set_source_object(self: &Self, value: impl Into<Nullable<Window>>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<DialogOpenedTrigger>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.