Base class for all ComponentOne text box controls.

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

Syntax

C#
[TemplateVisualStateAttribute(Name = "Valid", GroupName = "ValidationStatesStates")]
[TemplatePartAttribute(Name = "RootElement", Type = typeof(FrameworkElement))]
[StyleTypedPropertyAttribute(Property = "ValidationDecoratorStyle", StyleTargetType = typeof(C1ValidationDecorator))]
[TemplatePartAttribute(Name = "Watermark", Type = typeof(ContentControl))]
[TemplatePartAttribute(Name = "ContentElement", Type = typeof(ScrollViewer))]
[TemplatePartAttribute(Name = "FocusVisual", Type = typeof(FrameworkElement))]
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
[TemplateVisualStateAttribute(Name = "Unwatermarked", GroupName = "WatermarkStates")]
[TemplateVisualStateAttribute(Name = "Watermarked", GroupName = "WatermarkStates")]
[TemplateVisualStateAttribute(Name = "InvalidUnfocused", GroupName = "ValidationStatesStates")]
[TemplateVisualStateAttribute(Name = "InvalidFocused", GroupName = "ValidationStatesStates")]
public class C1TextBoxBase : TextBox, 
	INotifyPropertyChanged
Visual Basic
<TemplateVisualStateAttribute(Name := "Valid", GroupName := "ValidationStatesStates")> _
<TemplatePartAttribute(Name := "RootElement", Type := GetType(FrameworkElement))> _
<StyleTypedPropertyAttribute(Property := "ValidationDecoratorStyle", StyleTargetType := GetType(C1ValidationDecorator))> _
<TemplatePartAttribute(Name := "Watermark", Type := GetType(ContentControl))> _
<TemplatePartAttribute(Name := "ContentElement", Type := GetType(ScrollViewer))> _
<TemplatePartAttribute(Name := "FocusVisual", Type := GetType(FrameworkElement))> _
<EditorBrowsableAttribute(EditorBrowsableState.Never)> _
<TemplateVisualStateAttribute(Name := "Unwatermarked", GroupName := "WatermarkStates")> _
<TemplateVisualStateAttribute(Name := "Watermarked", GroupName := "WatermarkStates")> _
<TemplateVisualStateAttribute(Name := "InvalidUnfocused", GroupName := "ValidationStatesStates")> _
<TemplateVisualStateAttribute(Name := "InvalidFocused", GroupName := "ValidationStatesStates")> _
Public Class C1TextBoxBase _
	Inherits TextBox _
	Implements INotifyPropertyChanged

Remarks

Adds Watermark and IsEnabled properties, as well as styles for mouse over and focus.

Inheritance Hierarchy

System..::..Object
  System.Windows..::..DependencyObject
    System.Windows..::..UIElement
      System.Windows..::..FrameworkElement
        System.Windows.Controls..::..Control
          System.Windows.Controls..::..TextBox
            C1.Silverlight..::..C1TextBoxBase
              C1.Silverlight..::..C1MaskedTextBox
              C1.Silverlight.Extended..::..C1HexColorBox
              C1.Silverlight.Extended.PropertyGrid..::..ImageSourceEditor
              C1.Silverlight.Extended.PropertyGrid..::..StringEditor
              C1.Silverlight.Extended.PropertyGrid..::..UriEditor

See Also