[]
        
(Showing Draft Content)

C1.WPF.Input.C1EditableContentControl

C1EditableContentControl Class

ContentControl that supports edit mode using a TextBox.

Namespace: C1.WPF.Input
Assembly: C1.WPF.Input.dll
Syntax
[StyleTypedProperty(Property = "ValidationDecoratorStyle", StyleTargetType = typeof(C1ValidationDecorator))]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Focused", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
public abstract class C1EditableContentControl : ContentControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IDisposable

Constructors

Name Description
C1EditableContentControl()

Initializes a new instance of the C1EditableContentControl class.

Fields

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.

Properties

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.

IsDisposed

Gets whether this instance is disposed.

IsEditable

Gets or sets whether the control can be edited.

IsFocused

Gets whether the control is focused.

IsInEditMode

Gets or sets whether the control is in edit mode.

ValidationDecoratorStyle

Gets or sets the style that is applied to the inner C1ValidationDecorator.

Methods

Name Description
ChangeVisualStateCommon(bool)

Updates the current visual state of the Common visual state group to match the object's properties.

Dispose()
Dispose(bool)
Finalize()

Finalizes this instance of the C1EditableContentControl class.

OnApplyTemplate()
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.

OnGotFocus(RoutedEventArgs)
OnIsInEditModeChanged()

The control has changed the mode.

OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)
OnKeyDown(KeyEventArgs)
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

Events

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.