Intersoft.Client.UI.Controls Namespace : UXPasswordBox Class |
<TemplatePartAttribute(Name="WatermarkElement", Type=System.Windows.Controls.ContentControl)> <DescriptionAttribute("Represents a control that designed for entering and handling passwords.")> <TemplateVisualStateAttribute(Name="Unfocused", GroupName="FocusStates")> <TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")> <TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")> <TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")> <TemplateVisualStateAttribute(GroupName="ValidationStates", Name="Valid")> <TemplateVisualStateAttribute(GroupName="CommonStates", Name="ReadOnly")> <TemplateVisualStateAttribute(GroupName="ValidationStates", Name="InvalidUnfocused")> <TemplateVisualStateAttribute(GroupName="ValidationStates", Name="InvalidFocused")> <TemplatePartAttribute(Name="PasswordElement", Type=Intersoft.Client.UI.Controls.StylishLabel)> Public Class UXPasswordBox Inherits Intersoft.Client.Framework.ISPasswordBox Implements Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.Input.ICommandSource
Dim instance As UXPasswordBox
[TemplatePartAttribute(Name="WatermarkElement", Type=System.Windows.Controls.ContentControl)] [DescriptionAttribute("Represents a control that designed for entering and handling passwords.")] [TemplateVisualStateAttribute(Name="Unfocused", GroupName="FocusStates")] [TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")] [TemplateVisualStateAttribute(GroupName="ValidationStates", Name="Valid")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="ReadOnly")] [TemplateVisualStateAttribute(GroupName="ValidationStates", Name="InvalidUnfocused")] [TemplateVisualStateAttribute(GroupName="ValidationStates", Name="InvalidFocused")] [TemplatePartAttribute(Name="PasswordElement", Type=Intersoft.Client.UI.Controls.StylishLabel)] public class UXPasswordBox : Intersoft.Client.Framework.ISPasswordBox, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.Input.ICommandSource
[TemplatePartAttribute(Name="WatermarkElement", Type=System.Windows.Controls.ContentControl)] [DescriptionAttribute("Represents a control that designed for entering and handling passwords.")] [TemplateVisualStateAttribute(Name="Unfocused", GroupName="FocusStates")] [TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")] [TemplateVisualStateAttribute(GroupName="ValidationStates", Name="Valid")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="ReadOnly")] [TemplateVisualStateAttribute(GroupName="ValidationStates", Name="InvalidUnfocused")] [TemplateVisualStateAttribute(GroupName="ValidationStates", Name="InvalidFocused")] [TemplatePartAttribute(Name="PasswordElement", Type=Intersoft.Client.UI.Controls.StylishLabel)] public ref class UXPasswordBox : public Intersoft.Client.Framework.ISPasswordBox, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.Input.ICommandSource
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.
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
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