SetEnabledAction
struct · ferroui-xaml-interactions-custom · v0.5.0
struct SetEnabledAction
Sets the IsEnabled property of the target control (or of the sender).
Members
TYPEto_refis_enabled_value_propertytarget_control_propertyconstructnewtarget_controlset_target_controlis_enabled_valueset_is_enabled_value
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<SetEnabledAction>
Returns a strong reference to this object.
is_enabled_value_property
fn is_enabled_value_property() -> &'static StyledProperty<bool>
Identifies the IsEnabledValue property.
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.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates an action.
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.
set_target_control
fn set_target_control(self: &Self, value: impl Into<Nullable<Control>>)
is_enabled_value
fn is_enabled_value(self: &Self) -> bool
Gets or sets the value assigned to IsEnabled. This is a property of the object model.
set_is_enabled_value
fn set_is_enabled_value(self: &Self, value: bool)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementActionImplExtDerefUpcast<T>Upcast<SetEnabledAction>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementActionImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.