InlineEditBehavior
struct · ferroui-xaml-interactions-custom · v0.5.0
struct InlineEditBehavior
Edits in place: a display control is swapped for an edit control when the display control is
double tapped (or the associated control, with
edit_on_associated_object_double_tapped) or
the edit key is pressed on it, and swapped back when the accept or the cancel key is pressed in
the edit control or it loses the focus.
Members
TYPEto_refedit_control_propertydisplay_control_propertyedit_key_propertyaccept_key_propertycancel_key_propertyedit_on_associated_object_double_tapped_propertyconstructnewedit_controlset_edit_controldisplay_controlset_display_controledit_keyset_edit_keyaccept_keyset_accept_keycancel_keyset_cancel_keyedit_on_associated_object_double_tappedset_edit_on_associated_object_double_tapped
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<InlineEditBehavior>
Returns a strong reference to this object.
edit_control_property
fn edit_control_property() -> &'static StyledProperty<Option<ElementRef<Control>>>
Identifies the EditControl property.
Deviation (DEVIATIONS.md, Behaviors): the behavior does not own the control, so the value is an element reference.
display_control_property
fn display_control_property() -> &'static StyledProperty<Option<ElementRef<Control>>>
Identifies the DisplayControl property.
Deviation (DEVIATIONS.md, Behaviors): the behavior does not own the control, so the value is an element reference.
edit_key_property
fn edit_key_property() -> &'static StyledProperty<Key>
Identifies the EditKey property.
accept_key_property
fn accept_key_property() -> &'static StyledProperty<Key>
Identifies the AcceptKey property.
cancel_key_property
fn cancel_key_property() -> &'static StyledProperty<Key>
Identifies the CancelKey property.
edit_on_associated_object_double_tapped_property
fn edit_on_associated_object_double_tapped_property() -> &'static StyledProperty<bool>
Identifies the EditOnAssociatedObjectDoubleTapped property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a behavior.
edit_control
fn edit_control(self: &Self) -> Option<Ref<Control>>
Gets or sets the control used for editing. Markup resolves a name given for it to the named element. This is a property of the object model.
set_edit_control
fn set_edit_control(self: &Self, value: impl Into<Nullable<Control>>)
display_control
fn display_control(self: &Self) -> Option<Ref<Control>>
Gets or sets the control that displays the value. Markup resolves a name given for it to the named element. This is a property of the object model.
set_display_control
fn set_display_control(self: &Self, value: impl Into<Nullable<Control>>)
edit_key
fn edit_key(self: &Self) -> Key
Gets or sets the key that begins the edit in the display control. This is a property of the object model.
set_edit_key
fn set_edit_key(self: &Self, value: Key)
accept_key
fn accept_key(self: &Self) -> Key
Gets or sets the key that accepts the edit. This is a property of the object model.
set_accept_key
fn set_accept_key(self: &Self, value: Key)
cancel_key
fn cancel_key(self: &Self) -> Key
Gets or sets the key that cancels the edit. This is a property of the object model.
set_cancel_key
fn set_cancel_key(self: &Self, value: Key)
edit_on_associated_object_double_tapped
fn edit_on_associated_object_double_tapped(self: &Self) -> bool
Gets or sets whether a double tap on the associated control begins the edit. This is a property of the object model.
set_edit_on_associated_object_double_tapped
fn set_edit_on_associated_object_double_tapped(self: &Self, value: bool)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<InlineEditBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.