[]
Dual control that provides a TextBox on edit mode, and a ContentControl on readonly mode.
[TemplatePart(Name = "EditControl", Type = typeof(C1TextBoxBase))]
[TemplatePart(Name = "ContentControl", Type = typeof(ContentPresenter))]
[TemplateVisualState(Name = "Unwatermarked", GroupName = "WatermarkStates")]
[TemplateVisualState(Name = "Watermarked", GroupName = "WatermarkStates")]
[TemplateVisualState(Name = "Valid", GroupName = "ValidationStatesStates")]
[TemplateVisualState(Name = "InvalidUnfocused", GroupName = "ValidationStatesStates")]
[TemplateVisualState(Name = "InvalidFocused", GroupName = "ValidationStatesStates")]
[StyleTypedProperty(Property = "ValidationDecoratorStyle", StyleTargetType = typeof(C1ValidationDecorator))]
public class C1TextEditableContentControl : C1EditableContentControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild
| Name | Description |
|---|---|
| C1TextEditableContentControl() | Initializes a new instance of a C1TextEditableContentControl. |
| Name | Description |
|---|---|
| CaretBrushProperty | Identifies the CaretBrush dependency property. |
| DisabledCuesVisibilityProperty | Identifies the DisabledCuesVisibility dependency property. |
| FocusCuesVisibilityProperty | Identifies the FocusCuesVisibility dependency property. |
| IsWatermarkedProperty | Identifies the IsWatermarked dependency property. |
| SelectionBackgroundProperty | Identifies the C1.WPF.C1TextEditableContentControl.SelectionBackground dependency property. |
| SelectionForegroundProperty | Identifies the C1.WPF.C1TextEditableContentControl.SelectionForeground dependency property. |
| TextAlignmentProperty | Identifies the TextAlignment dependency property. |
| ValidationDecoratorStyleProperty | Identifies the ValidationDecoratorStyle dependency property. |
| WatermarkProperty | Identifies the Watermark dependency property. |
| Name | Description |
|---|---|
| CaretBrush | Gets or sets the Brush of the blinking cursor of an input control. When .NET Framework is v3.5, 'CaretBrush' takes no effect. |
| DisabledCuesVisibility | Gets or sets a value indicating whether the disabled visuals of the control are visible. |
| EditTextBox | C1.Silverlight.C1TextBoxBase used during the edit mode. |
| FocusCuesVisibility | Gets or sets a value indicating whether the focus visuals of the control are visible. |
| IsDirty | Get or sets whether the element was edited during edit mode. |
| IsWatermarked | Get or sets if the watermark is shown. |
| TextAlignment | Gets or sets how the text should be aligned in the C1TextEditableContentControl. |
| ValidationDecoratorStyle | Gets or sets the style that is applied to the inner C1ValidationDecorator. |
| Watermark | Gets or sets the watermark content displayed when the control is empty. |
| Name | Description |
|---|---|
| ChangeVisualStateWatermark(bool) | Updates the current visual state of the Watermark visual state group to match the object's properties. |
| OnApplyTemplate() | Builds the visual tree for the C1TextEditableContentControl control when a new template is applied. |
| OnEditCanceled() | Fires the C1.Silverlight.C1EditableContentControl.EditCanceled event. |
| OnIsInEditModeChanged(bool) | The control has changed the mode. |
| 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. |
| Name | Description |
|---|---|
| TextBoxKeyDown | Event fired when a key is pressed in the EditableTextBox. |
| TextBoxKeyUp | Event fired when a key is released in the EditableTextBox. |
| TextEdited | Event fired to do when the text is edited in the EditableTextBox. |
| ValidateInput | Event fired when the editing is completed. Handle this event to validate the new input. |