[]
ContenControl that supports edit mode using a TextBox.
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Valid", GroupName = "ValidationStatesStates")]
[TemplateVisualState(Name = "InvalidUnfocused", GroupName = "ValidationStatesStates")]
[TemplateVisualState(Name = "InvalidFocused", GroupName = "ValidationStatesStates")]
[StyleTypedProperty(Property = "ValidationDecoratorStyle", StyleTargetType = typeof(C1ValidationDecorator))]
public abstract class C1EditableContentControl : ContentControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild
| Name | Description |
|---|---|
| C1EditableContentControl() | Initializes a new instance of a C1EditableContentControl. |
| Name | Description |
|---|---|
| ContentControlProperty | Identifies the ContentControl dependency property. |
| ContentConverterProperty | Identifies the ContentConverter dependency property. |
| EditControlProperty | Identifies the EditControl dependency property. |
| IsEditableProperty | Identifies the IsEditable dependency property. |
| IsInEditModeProperty | Identifies the IsInEditMode dependency property. |
| ValidationDecoratorStyleProperty | Identifies the ValidationDecoratorStyle dependency property. |
| Name | Description |
|---|---|
| ContentControl | Control visible when it is not in edit mode. |
| ContentConverter | Used to create the control content from the edited content. |
| EditControl | Control visible when it is in edit mode. |
| IsDirty | Get or sets whether the element was edited during edit mode. |
| IsEditable | Gets/set if the control can be edited. |
| IsInEditMode | Gets/sets when the control enters in edit mode. |
| ValidationDecoratorStyle | Gets or sets the style that is applied to the inner C1ValidationDecorator. |
| Name | Description |
|---|---|
| ChangeVisualStateCommon(bool) | Updates the current visual state of the Common visual state group to match the object's properties. |
| OnApplyTemplate() | Builds the visual tree for the C1EditableContentControl control when a new template is applied. |
| OnContentChanged(object, object) | Called when the value of the Content property changes. |
| OnEditCanceled() | Fires the C1.Silverlight.C1EditableContentControl.EditCanceled event. |
| OnEditCompleted() | Fires the C1.Silverlight.C1EditableContentControl.EditCompleted event. |
| OnEditStarted() | Fires the C1.Silverlight.C1EditableContentControl.EditStarted event. |
| OnIsEditableChanged(bool) | The IsEditable value has changed. |
| OnIsInEditModeChanged(bool) | The control has changed the mode. |
| OnPropertyChanged(DependencyPropertyChangedEventArgs) | Invoked whenever the effective value of any dependency property has been updated. |
| ShouldEnterEditModeOnKeyDown(Key) | Called to define if the control has to enter edit mode when a particular key is pressed. For example: arrow keys might not change to edit mode. |
| UpdateVisualState() | Update the visual state of this control |
| Name | Description |
|---|---|
| EditCanceled | Fired when the user exits edit mode without changes. |
| EditCompleted | Fired when the user has completed the edits. |
| EditStarted | Fired when the control enters edit mode. |
| IsMouseOverChanged | Event raised when the IsMouseOver property has changed. |