Base class for all ComponentOne text box controls.

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

Syntax

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

Remarks

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

Inheritance Hierarchy

See Also