Base class for all ComponentOne text box controls.

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

Syntax

C#
[StyleTypedPropertyAttribute(Property = "ValidationDecoratorStyle", StyleTargetType = typeof(C1ValidationDecorator))]
[TemplateVisualStateAttribute(Name = "InvalidFocused", GroupName = "ValidationStatesStates")]
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
[LicenseProviderAttribute]
[TemplatePartAttribute(Name = "Watermark", Type = typeof(ContentControl))]
[TemplatePartAttribute(Name = "ContentElement", Type = typeof(ScrollViewer))]
[TemplatePartAttribute(Name = "FocusVisual", Type = typeof(FrameworkElement))]
[TemplatePartAttribute(Name = "RootElement", Type = typeof(FrameworkElement))]
[TemplateVisualStateAttribute(Name = "Unwatermarked", GroupName = "WatermarkStates")]
[TemplateVisualStateAttribute(Name = "Watermarked", GroupName = "WatermarkStates")]
[TemplateVisualStateAttribute(Name = "Valid", GroupName = "ValidationStatesStates")]
[TemplateVisualStateAttribute(Name = "InvalidUnfocused", GroupName = "ValidationStatesStates")]
public class C1TextBoxBase : TextBox, 
	INotifyPropertyChanged
Visual Basic
<StyleTypedPropertyAttribute(Property := "ValidationDecoratorStyle", StyleTargetType := GetType(C1ValidationDecorator))> _
<TemplateVisualStateAttribute(Name := "InvalidFocused", GroupName := "ValidationStatesStates")> _
<EditorBrowsableAttribute(EditorBrowsableState.Never)> _
<LicenseProviderAttribute> _
<TemplatePartAttribute(Name := "Watermark", Type := GetType(ContentControl))> _
<TemplatePartAttribute(Name := "ContentElement", Type := GetType(ScrollViewer))> _
<TemplatePartAttribute(Name := "FocusVisual", Type := GetType(FrameworkElement))> _
<TemplatePartAttribute(Name := "RootElement", Type := GetType(FrameworkElement))> _
<TemplateVisualStateAttribute(Name := "Unwatermarked", GroupName := "WatermarkStates")> _
<TemplateVisualStateAttribute(Name := "Watermarked", GroupName := "WatermarkStates")> _
<TemplateVisualStateAttribute(Name := "Valid", GroupName := "ValidationStatesStates")> _
<TemplateVisualStateAttribute(Name := "InvalidUnfocused", 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.Threading..::..DispatcherObject
    System.Windows..::..DependencyObject
      System.Windows.Media..::..Visual
        System.Windows..::..UIElement
          System.Windows..::..FrameworkElement
            System.Windows.Controls..::..Control
              System.Windows.Controls.Primitives..::..TextBoxBase
                System.Windows.Controls..::..TextBox
                  C1.WPF..::..C1TextBoxBase
                    C1.WPF..::..C1MaskedTextBox

See Also