Share via


IXRPasswordBox (Windows Embedded CE 6.0)

1/6/2010

This class represents a control for users to enter passwords.

Syntax

class IXRPasswordBox : public IXRControl

Methods

Method Description

IXRPasswordBox::AddPasswordChangedEventHandler

Attaches a delegate to the PasswordChanged event for this password box. When the PasswordChanged event is raised by this password box, this delegate will be invoked.

IXRPasswordBox::GetFontSource

Retrieves the font source that is applied to this password box for displaying content.

IXRPasswordBox::GetMaxLength

Retrieves the maximum length for passwords to be handled by this password box.

IXRPasswordBox::GetPassword

Retrieves the password currently held by this password box.

IXRPasswordBox::GetPasswordChar

Retrieves the masking character for this password box.

IXRPasswordBox::GetSelectionBackground

Retrieves the Brush used to paint the background for the selected text in this password box

IXRPasswordBox::GetSelectionForeground

Retrieves the Brush used to paint the selected text in this password box.

IXRPasswordBox::RemovePasswordChangedEventHandler

Removes a delegate from the PasswordChanged event for this password box.

IXRPasswordBox::SelectAll

Selects all the characters in this password box.

IXRPasswordBox::SetFontSource

Sets the font source that is applied to this password box for displaying content.

IXRPasswordBox::SetMaxLength

Sets the maximum length for passwords to be handled by this password box.

IXRPasswordBox::SetPassword

Sets the password to hold in this password box.

IXRPasswordBox::SetPasswordChar

Sets the masking character for this password box.

IXRPasswordBox::SetSelectionBackground

Sets the Brush used to paint the background for the selected text in this password box.

IXRPasswordBox::SetSelectionForeground

Sets the Brush used to paint the selected text in this password box.

Remarks

A user can enter a single line of non-wrapping content in an IXRPasswordBox control. The user cannot view the entered text; only password characters that represent the text are displayed. You can specify the password character by using IXRPasswordBox::SetPasswordChar.

The content displayed in this password box control is the string that can be accessed through IXRPasswordBox::GetPassword.

You can use the IXRTextBlock control to provide labels for this password box.

You can also define a password-box control in Microsoft Silverlight 2 XAML. For information about the differences between XAML in Silverlight for Windows Embedded and Silverlight 2, see Differences Between Silverlight for the Web and Silverlight for Windows Embedded. For more information about how to define this element in the source XAML for your application, see this Microsoft Web site.

Inheritance Hierarchy

IXRDependencyObject

    IXRUIElement

        IXRFrameworkElement

            IXRControl

                IXRPasswordBox

.NET Framework Equivalent

System.Windows.Controls.PasswordBox

Requirements

sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

Classes for UI Element Management

Other Resources