Base class for all ComponentOne text box controls.
Namespace:
C1.PhoneAssembly: C1.Phone (in C1.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.
Syntax
C# |
---|
[TemplateVisualStateAttribute(Name = "InvalidFocused", GroupName = "ValidationStatesStates")] [TemplateVisualStateAttribute(Name = "Unwatermarked", GroupName = "WatermarkStates")] [TemplatePartAttribute(Name = "RootElement", Type = typeof(FrameworkElement))] [TemplateVisualStateAttribute(Name = "Valid", GroupName = "ValidationStatesStates")] [TemplateVisualStateAttribute(Name = "InvalidUnfocused", GroupName = "ValidationStatesStates")] [StyleTypedPropertyAttribute(Property = "ValidationDecoratorStyle", StyleTargetType = typeof(C1ValidationDecorator))] [TemplateVisualStateAttribute(Name = "Watermarked", GroupName = "WatermarkStates")] [EditorBrowsableAttribute(EditorBrowsableState.Never)] [TemplatePartAttribute(Name = "Watermark", Type = typeof(ContentControl))] [TemplatePartAttribute(Name = "ContentElement", Type = typeof(ScrollViewer))] [TemplatePartAttribute(Name = "FocusVisual", Type = typeof(FrameworkElement))] public class C1TextBoxBase : TextBox, INotifyPropertyChanged |
Visual Basic |
---|
<TemplateVisualStateAttribute(Name := "InvalidFocused", GroupName := "ValidationStatesStates")> _ <TemplateVisualStateAttribute(Name := "Unwatermarked", GroupName := "WatermarkStates")> _ <TemplatePartAttribute(Name := "RootElement", Type := GetType(FrameworkElement))> _ <TemplateVisualStateAttribute(Name := "Valid", GroupName := "ValidationStatesStates")> _ <TemplateVisualStateAttribute(Name := "InvalidUnfocused", GroupName := "ValidationStatesStates")> _ <StyleTypedPropertyAttribute(Property := "ValidationDecoratorStyle", StyleTargetType := GetType(C1ValidationDecorator))> _ <TemplateVisualStateAttribute(Name := "Watermarked", GroupName := "WatermarkStates")> _ <EditorBrowsableAttribute(EditorBrowsableState.Never)> _ <TemplatePartAttribute(Name := "Watermark", Type := GetType(ContentControl))> _ <TemplatePartAttribute(Name := "ContentElement", Type := GetType(ScrollViewer))> _ <TemplatePartAttribute(Name := "FocusVisual", Type := GetType(FrameworkElement))> _ 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
System..::..Object
System.Windows..::..DependencyObject
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Control
System.Windows.Controls..::..TextBox
C1.Phone..::..C1TextBoxBase
C1.Phone..::..C1MaskedTextBox
System.Windows..::..DependencyObject
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Control
System.Windows.Controls..::..TextBox
C1.Phone..::..C1TextBoxBase
C1.Phone..::..C1MaskedTextBox