Base class for all ComponentOne text box controls.

Namespace:  C1.WPF
Assembly:  C1.WPF (in C1.WPF.dll)
XMLNS for XAML: Not mapped to an xmlns.

Syntax

C#
[TemplateVisualStateAttribute(Name = "InvalidFocused", GroupName = "ValidationStatesStates")]
[TemplatePartAttribute(Name = "RootElement", Type = typeof(FrameworkElement))]
[LicenseProviderAttribute]
[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 = "Valid", GroupName = "ValidationStatesStates")]
[TemplateVisualStateAttribute(Name = "InvalidUnfocused", GroupName = "ValidationStatesStates")]
public class C1TextBoxBase : TextBox, 
	INotifyPropertyChanged
Visual Basic
<TemplateVisualStateAttribute(Name := "InvalidFocused", GroupName := "ValidationStatesStates")> _
<TemplatePartAttribute(Name := "RootElement", Type := GetType(FrameworkElement))> _
<LicenseProviderAttribute> _
<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 := "Valid", GroupName := "ValidationStatesStates")> _
<TemplateVisualStateAttribute(Name := "InvalidUnfocused", GroupName := "ValidationStatesStates")> _
Public Class C1TextBoxBase _
	Inherits TextBox _
	Implements INotifyPropertyChanged
XAML Object Element Usage
<C1TextBoxBase .../>

Remarks

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

Inheritance Hierarchy

See Also