HideOnKeyPressedBehavior
struct · ferroui-xaml-interactions-custom · v0.5.0
struct HideOnKeyPressedBehavior
Hides the target control when the key is pressed in the associated control.
Members
TYPEto_reftarget_control_propertykey_propertyconstructnewtarget_controlset_target_controlkeyset_key
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<HideOnKeyPressedBehavior>
Returns a strong reference to this object.
target_control_property
fn target_control_property() -> &'static StyledProperty<Option<ElementRef<Control>>>
Identifies the TargetControl property.
Deviation (DEVIATIONS.md, Behaviors): the behavior does not own the control, so the value is an element reference.
key_property
fn key_property() -> &'static StyledProperty<Key>
Identifies the Key property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a behavior.
target_control
fn target_control(self: &Self) -> Option<Ref<Control>>
Gets or sets the control that is hidden. Markup resolves a name given for it to the named element. This is a property of the object model.
set_target_control
fn set_target_control(self: &Self, value: impl Into<Nullable<Control>>)
key
fn key(self: &Self) -> Key
Gets or sets the key that hides the target control. This is a property of the object model.
set_key
fn set_key(self: &Self, value: Key)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<HideOnKeyPressedBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.