Class EditableControl
Represents a content control that allows editing via a TextBox.
Inheritance
Implements
Inherited Members
Namespace: Phoenix.Aruba.Controls
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class EditableControl : ContentControl, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild
Constructors
View SourceEditableControl()
Initializes a new instance of the EditableControl class.
Declaration
public EditableControl()
Fields
View SourceEnterEditModeCommand
The Routed Command for editing an editable control.
Declaration
public static readonly RoutedCommand EnterEditModeCommand
Field Value
Type | Description |
---|---|
RoutedCommand |
IsEditingAllowedProperty
The DependencyProperty representing the IsEditingAllowed property.
Declaration
public static readonly DependencyProperty IsEditingAllowedProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IsEditingProperty
The DependencyProperty representing the IsEditing property.
Declaration
public static readonly DependencyProperty IsEditingProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
MaxLengthProperty
The DependencyProperty representing the MaxLength property.
Declaration
public static readonly DependencyProperty MaxLengthProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
OnEditingChangedCommandProperty
The DependencyProperty representing the OnEditingChangedCommand property.
Declaration
public static readonly DependencyProperty OnEditingChangedCommandProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
View SourceIsEditing
Gets or sets a value indicating whether this instance is in edit mode.
Declaration
public bool IsEditing { get; set; }
Property Value
Type | Description |
---|---|
bool |
|
IsEditingAllowed
Gets or sets a value indicating whether editing is allowed.
Declaration
public bool IsEditingAllowed { get; set; }
Property Value
Type | Description |
---|---|
bool |
|
MaxLength
Gets or sets the max length of the text in this control.
Declaration
public int MaxLength { get; set; }
Property Value
Type | Description |
---|---|
int |
OnEditingChangedCommand
Gets or sets a command to execute when the "IsEditing" property is changed. When executed, an instance of EditingChangedParams will be used as the command parameter
Declaration
public ICommand OnEditingChangedCommand { get; set; }
Property Value
Type | Description |
---|---|
ICommand |
Methods
View SourceOnTemplateChanged(ControlTemplate, ControlTemplate)
Called when the control template is changed.
Declaration
protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)
Parameters
Type | Name | Description |
---|---|---|
ControlTemplate | oldTemplate | The old control template. |
ControlTemplate | newTemplate | The new control template. |