ConditionalBehavior
struct · ferroui-xaml-interactions-custom · v0.5.0
struct ConditionalBehavior
A trigger that executes its actions (its content in markup) when condition
changes to true, its else_actions when it changes to false.
Members
TYPEto_refcondition_propertyelse_actions_propertyconstructnewconditionset_conditionelse_actionsset_else_actions
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ConditionalBehavior>
Returns a strong reference to this object.
condition_property
fn condition_property() -> &'static StyledProperty<bool>
Identifies the Condition property.
else_actions_property
fn else_actions_property() -> &'static StyledProperty<Option<ActionCollection>>
Identifies the ElseActions property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a trigger.
condition
fn condition(self: &Self) -> bool
Gets or sets the condition. This is a property of the object model.
set_condition
fn set_condition(self: &Self, value: bool)
else_actions
fn else_actions(self: &Self) -> Option<ActionCollection>
Gets or sets the actions executed when the condition changes to false. This is a property of the object model.
set_else_actions
fn set_else_actions(self: &Self, value: Option<ActionCollection>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<ConditionalBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplFerroObjectImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.