Dual control that provides a TextBox on edit mode, and a ContentControl on readonly mode.

Namespace:  C1.Silverlight
Assembly:  C1.Silverlight (in C1.Silverlight.dll)

Syntax

C#
[StyleTypedPropertyAttribute(Property = "ValidationDecoratorStyle", StyleTargetType = typeof(C1ValidationDecorator))]
[TemplatePartAttribute(Name = "EditControl", Type = typeof(C1TextBoxBase))]
[TemplatePartAttribute(Name = "ContentControl", Type = typeof(ContentPresenter))]
[TemplateVisualStateAttribute(Name = "Unwatermarked", GroupName = "WatermarkStates")]
[TemplateVisualStateAttribute(Name = "Watermarked", GroupName = "WatermarkStates")]
[TemplateVisualStateAttribute(Name = "Valid", GroupName = "ValidationStatesStates")]
[TemplateVisualStateAttribute(Name = "InvalidUnfocused", GroupName = "ValidationStatesStates")]
[TemplateVisualStateAttribute(Name = "InvalidFocused", GroupName = "ValidationStatesStates")]
public class C1TextEditableContentControl : C1EditableContentControl
Visual Basic
<StyleTypedPropertyAttribute(Property := "ValidationDecoratorStyle", StyleTargetType := GetType(C1ValidationDecorator))> _
<TemplatePartAttribute(Name := "EditControl", Type := GetType(C1TextBoxBase))> _
<TemplatePartAttribute(Name := "ContentControl", Type := GetType(ContentPresenter))> _
<TemplateVisualStateAttribute(Name := "Unwatermarked", GroupName := "WatermarkStates")> _
<TemplateVisualStateAttribute(Name := "Watermarked", GroupName := "WatermarkStates")> _
<TemplateVisualStateAttribute(Name := "Valid", GroupName := "ValidationStatesStates")> _
<TemplateVisualStateAttribute(Name := "InvalidUnfocused", GroupName := "ValidationStatesStates")> _
<TemplateVisualStateAttribute(Name := "InvalidFocused", GroupName := "ValidationStatesStates")> _
Public Class C1TextEditableContentControl _
	Inherits C1EditableContentControl

Inheritance Hierarchy

See Also