Intersoft ClientUI Documentation
UXTextBox Class
Members  See Also  Send Feedback
Intersoft.Client.UI.Controls Namespace : UXTextBox Class






Represents a control that can display or edit unformatted text.

Object Model

UXTextBox Class

Syntax

Visual Basic (Declaration) 
<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 IControlIFramework, ILicensing, ICommandSource 
Visual Basic (Usage)Copy Code
Dim instance As UXTextBox
C# 
[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, IControlIFramework, ILicensing, ICommandSource  
Delphi 
public class UXTextBox = class(Intersoft.Client.Framework.ISTextBox, IControl, IFramework, ILicensing, ICommandSource)
JScript 
DescriptionAttribute("Represents a control that can display or edit unformatted text.")
TemplatePartAttribute(Name="WatermarkElement", Type=System.Windows.Controls.TextBlock)
public class UXTextBox extends Intersoft.Client.Framework.ISTextBox implements IControlIFramework, ILicensing, ICommandSource 
Managed Extensions for C++ 
[DescriptionAttribute("Represents a control that can display or edit unformatted text.")]
[TemplatePartAttribute(Name="WatermarkElement", Type=System.Windows.Controls.TextBlock)]
public __gc class UXTextBox : public Intersoft.Client.Framework.ISTextBox, IControlIFramework, ILicensing, ICommandSource  
C++/CLI 
[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, IControlIFramework, ILicensing, ICommandSource  

Remarks

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.

Inheritance Hierarchy

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

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.