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






Represents a control that designed for entering and handling passwords.

Object Model

UXPasswordBox Class

Syntax

Visual Basic (Declaration) 
<TemplateVisualStateAttribute(Name="Unfocused", GroupName="FocusStates")>
<TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")>
<TemplateVisualStateAttribute(GroupName="ValidationStates", Name="InvalidFocused")>
<TemplateVisualStateAttribute(GroupName="ValidationStates", Name="Valid")>
<TemplateVisualStateAttribute(GroupName="ValidationStates", Name="InvalidUnfocused")>
<TemplatePartAttribute(Name="WatermarkElement", Type=System.Windows.Controls.ContentControl)>
<TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")>
<TemplateVisualStateAttribute(GroupName="CommonStates", Name="ReadOnly")>
<TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")>
<DescriptionAttribute("Represents a control that designed for entering and handling passwords.")>
<TemplatePartAttribute(Name="PasswordElement", Type=Intersoft.Client.UI.Controls.StylishLabel)>
Public Class UXPasswordBox 
   Inherits Intersoft.Client.Framework.ISPasswordBox
   Implements IControlIFramework, ILicensing, ICommandSource 
Visual Basic (Usage)Copy Code
Dim instance As UXPasswordBox
C# 
[TemplateVisualStateAttribute(Name="Unfocused", GroupName="FocusStates")]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")]
[TemplateVisualStateAttribute(GroupName="ValidationStates", Name="InvalidFocused")]
[TemplateVisualStateAttribute(GroupName="ValidationStates", Name="Valid")]
[TemplateVisualStateAttribute(GroupName="ValidationStates", Name="InvalidUnfocused")]
[TemplatePartAttribute(Name="WatermarkElement", Type=System.Windows.Controls.ContentControl)]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="ReadOnly")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")]
[DescriptionAttribute("Represents a control that designed for entering and handling passwords.")]
[TemplatePartAttribute(Name="PasswordElement", Type=Intersoft.Client.UI.Controls.StylishLabel)]
public class UXPasswordBox : Intersoft.Client.Framework.ISPasswordBox, IControlIFramework, ILicensing, ICommandSource  
Delphi 
public class UXPasswordBox = class(Intersoft.Client.Framework.ISPasswordBox, IControl, IFramework, ILicensing, ICommandSource)
JScript 
TemplateVisualStateAttribute(Name="Unfocused", GroupName="FocusStates")
TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")
TemplateVisualStateAttribute(GroupName="ValidationStates", Name="InvalidFocused")
TemplateVisualStateAttribute(GroupName="ValidationStates", Name="Valid")
TemplateVisualStateAttribute(GroupName="ValidationStates", Name="InvalidUnfocused")
TemplatePartAttribute(Name="WatermarkElement", Type=System.Windows.Controls.ContentControl)
TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")
TemplateVisualStateAttribute(GroupName="CommonStates", Name="ReadOnly")
TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")
DescriptionAttribute("Represents a control that designed for entering and handling passwords.")
TemplatePartAttribute(Name="PasswordElement", Type=Intersoft.Client.UI.Controls.StylishLabel)
public class UXPasswordBox extends Intersoft.Client.Framework.ISPasswordBox implements IControlIFramework, ILicensing, ICommandSource 
Managed Extensions for C++ 
[TemplateVisualStateAttribute(Name="Unfocused", GroupName="FocusStates")]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")]
[TemplateVisualStateAttribute(GroupName="ValidationStates", Name="InvalidFocused")]
[TemplateVisualStateAttribute(GroupName="ValidationStates", Name="Valid")]
[TemplateVisualStateAttribute(GroupName="ValidationStates", Name="InvalidUnfocused")]
[TemplatePartAttribute(Name="WatermarkElement", Type=System.Windows.Controls.ContentControl)]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="ReadOnly")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")]
[DescriptionAttribute("Represents a control that designed for entering and handling passwords.")]
[TemplatePartAttribute(Name="PasswordElement", Type=Intersoft.Client.UI.Controls.StylishLabel)]
public __gc class UXPasswordBox : public Intersoft.Client.Framework.ISPasswordBox, IControlIFramework, ILicensing, ICommandSource  
C++/CLI 
[TemplateVisualStateAttribute(Name="Unfocused", GroupName="FocusStates")]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")]
[TemplateVisualStateAttribute(GroupName="ValidationStates", Name="InvalidFocused")]
[TemplateVisualStateAttribute(GroupName="ValidationStates", Name="Valid")]
[TemplateVisualStateAttribute(GroupName="ValidationStates", Name="InvalidUnfocused")]
[TemplatePartAttribute(Name="WatermarkElement", Type=System.Windows.Controls.ContentControl)]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="ReadOnly")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")]
[DescriptionAttribute("Represents a control that designed for entering and handling passwords.")]
[TemplatePartAttribute(Name="PasswordElement", Type=Intersoft.Client.UI.Controls.StylishLabel)]
public ref class UXPasswordBox : public Intersoft.Client.Framework.ISPasswordBox, IControlIFramework, ILicensing, ICommandSource  

Remarks

UXPasswordBox is a fundamental input control generally used to obtain password input through input devices such as keyboard. UXPasswordBox automatically masks the original input text with the character specified in PasswordChar property. You access the original input text by accessing the Password property.

The following example shows a simple login form that uses UXPasswordBox to obtain password input.

XAML Copy Code
<StackPanel>
    <Intersoft:FieldLabel Header="User:">
            <Intersoft:UXTextBox Width="150"/>
    </Intersoft:FieldLabel>
    <Intersoft:FieldLabel Header="Password:">
            <Intersoft:UXPasswordBox Width="150"/>
    </Intersoft:FieldLabel>
</StackPanel>

In data bound scenarios, it is recommended to use MVVM pattern to bind the Password property to a ViewModel class. To learn more about MVVM pattern, see MVVM Pattern Overview.

For more information about UXPasswordBox, see UXPasswordBox Overview.

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Control
               Intersoft.Client.Framework.ISControl
                  Intersoft.Client.Framework.ISPasswordBox
                     Intersoft.Client.UI.Controls.UXPasswordBox

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.