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

Inheritance Hierarchy

System..::..Object
  System.Windows..::..DependencyObject
    System.Windows..::..UIElement
      System.Windows..::..FrameworkElement
        System.Windows.Controls..::..Control
          System.Windows.Controls..::..ContentControl
            C1.Silverlight..::..C1EditableContentControl
              C1.Silverlight..::..C1TextEditableContentControl

See Also