Intersoft.Client.UI.Controls Namespace : UXTextBox Class |
<DescriptionAttribute("Represents a control that can display or edit unformatted text.")> <TemplatePartAttribute(Name="WatermarkElement", Type=System.Windows.Controls.TextBlock)> Public Class UXTextBox Inherits Intersoft.Client.Framework.ISTextBox Implements Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.Input.ICommandSource
Dim instance As UXTextBox
[DescriptionAttribute("Represents a control that can display or edit unformatted text.")] [TemplatePartAttribute(Name="WatermarkElement", Type=System.Windows.Controls.TextBlock)] public class UXTextBox : Intersoft.Client.Framework.ISTextBox, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.Input.ICommandSource
[DescriptionAttribute("Represents a control that can display or edit unformatted text.")] [TemplatePartAttribute(Name="WatermarkElement", Type=System.Windows.Controls.TextBlock)] public ref class UXTextBox : public Intersoft.Client.Framework.ISTextBox, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.Input.ICommandSource
UXTextBox is a fundamental input control generally used to obtain input data from users through input devices such as keyboard. Using UXTextBox in XAML is straightforward and easy, you simply define an instance of the UXTextBox and set the Text property for an initial text. In data bound application, you bind the Text property to the data entity specified in the data context by using Binding extension markup such as shown in the following example.
XAML |
Copy Code
|
---|---|
<Intersoft:FieldLabel Header="Author:"> <Intersoft:UXTextBox Text="{Binding Mode=TwoWay, Path=Book.Author, ValidatesOnDataErrors=True}" Width="150"/> </Intersoft:FieldLabel> |
In most scenarios, it is recommended to use MVVM pattern to bind the Text property to a ViewModel class. To learn more about MVVM pattern, see MVVM Pattern Overview.
System.Object
System.Windows.DependencyObject
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Controls.Control
System.Windows.Controls.TextBox
Intersoft.Client.Framework.ISTextBox
Intersoft.Client.UI.Controls.UXTextBox
Intersoft.Client.UI.Aqua.UXInput.UXMaskedInputBase
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2