FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<InlineEditBehavior>
    

    Returns a strong reference to this object.

    Source

    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.

    Source

    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.

    Source

    edit_key_property

    fn edit_key_property() -> &'static StyledProperty<Key>
    

    Identifies the EditKey property.

    Source

    accept_key_property

    fn accept_key_property() -> &'static StyledProperty<Key>
    

    Identifies the AcceptKey property.

    Source

    cancel_key_property

    fn cancel_key_property() -> &'static StyledProperty<Key>
    

    Identifies the CancelKey property.

    Source

    edit_on_associated_object_double_tapped_property

    fn edit_on_associated_object_double_tapped_property() -> &'static StyledProperty<bool>
    

    Identifies the EditOnAssociatedObjectDoubleTapped property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a behavior.

    Source

    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.

    Source

    set_edit_control

    fn set_edit_control(self: &Self, value: impl Into<Nullable<Control>>)
    

    Source

    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.

    Source

    set_display_control

    fn set_display_control(self: &Self, value: impl Into<Nullable<Control>>)
    

    Source

    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.

    Source

    set_edit_key

    fn set_edit_key(self: &Self, value: Key)
    

    Source

    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.

    Source

    set_accept_key

    fn set_accept_key(self: &Self, value: Key)
    

    Source

    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.

    Source

    set_cancel_key

    fn set_cancel_key(self: &Self, value: Key)
    

    Source

    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.

    Source

    set_edit_on_associated_object_double_tapped

    fn set_edit_on_associated_object_double_tapped(self: &Self, value: bool)
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.