Click or drag to resize
RadPasswordBox Class
This class represents a control that is designed for entering passwords. It can show different content when empty and provides a button that displays the currently entered password.
Inheritance Hierarchy

Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls (in Telerik.Windows.Controls.dll) Version: 2017.3.913.40 (2017.3.913.40)
Syntax
public class RadPasswordBox : RadWatermarkTextBox

The RadPasswordBox type exposes the following members.

Constructors
  NameDescription
Public methodRadPasswordBox
Initializes a new instance of the RadPasswordBox class.
Top
Methods
  NameDescription
Public methodClear
Clears the current Password.
Public methodEndInit
Indicates that the initialization process for the element is complete.
(Inherited from RadWatermarkTextBox.)
Protected methodHandleKeyDown
Contains the logic for handling the preview key down event of RadPasswordBox.
Protected methodMeasureOverride
When overridden in a derived class, measures the size in layout required for child elements and determines a size for the System.Windows.FrameworkElement-derived class.
(Overrides TextBoxMeasureOverride(Size).)
Public methodOnApplyTemplate
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate.
(Overrides RadWatermarkTextBoxOnApplyTemplate.)
Protected methodOnCreateAutomationPeer
Returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
(Overrides RadWatermarkTextBoxOnCreateAutomationPeer.)
Protected methodOnDrop
Invoked when an unhandled System.Windows.DragDrop.DragEnter attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
(Overrides TextBoxBaseOnDrop(DragEventArgs).)
Protected methodOnInitialized
Raises the Initialized event. This method is invoked whenever IsInitialized is set to true internally.
(Inherited from RadWatermarkTextBox.)
Protected methodOnPasswordChanged
Called when the Password changes and raises the PasswordChanged event.
Protected methodOnPreviewKeyDown
Virtual method reporting a key was pressed.
(Overrides TextBoxBaseOnPreviewKeyDown(KeyEventArgs).)
Protected methodOnPreviewTextInput
Virtual method reporting text composition.
(Overrides UIElementOnPreviewTextInput(TextCompositionEventArgs).)
Top
Extension Methods
  NameDescription
Public Extension MethodChildrenOfTypeT
Gets all child elements recursively from the visual tree by given type.
(Defined by ChildrenOfTypeExtensions.)
Public Extension MethodClearIfNoBindingAndSet
Clears if set.
(Defined by CommonExtensions.)
Public Extension MethodClearIfSet
Clears the property if a value has been set.
(Defined by CommonExtensions.)
Public Extension MethodDeserializePrimitives
Deserializes some primitive properties of a control.
(Defined by SerializationExtensions.)
Public Extension MethodEnableLayoutRounding (Defined by LayoutRoundingHelperExtensions.)
Public Extension MethodFindChildByTypeT
Finds child element of the specified type. Uses breadth-first search.
(Defined by ChildrenOfTypeExtensions.)
Public Extension MethodGetAssociatedInlineUIContainer (Defined by ExtensionMethods.)
Public Extension MethodGetAssociatedLayoutBox (Defined by ExtensionMethods.)
Public Extension MethodGetBaseControlItemStatus
Gets a string that communicates the visual status of a Control.
(Defined by AutomationExtensions.)
Public Extension MethodGetBoundsRelativeTo
Gets the bounds relative to the current framework element.
(Defined by ExtensionMethods.)
Public Extension MethodGetGlobalMousePosition
(Defined by WindowHost.)
Public Extension MethodGetParents
Enumerates through element's parents in the visual tree.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodGetVisualParentT
Searches up in the visual tree for parent element of the specified type.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodIsAncestorOf(DependencyObject)Overloaded.
Determines whether the element is ancestor of the current UI element.
(Defined by ExtensionMethods.)
Public Extension MethodIsAncestorOf(DependencyObject)Overloaded.
Determines whether the element is an ancestor of the descendant.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodIsKeyboardFocusWithin
Determines whether keyboard focus is within the current UI element.
(Defined by KeyboardHelper.)
Public Extension MethodIsLocalValueSet(DependencyProperty)Overloaded.
Determines whether the specified dependency property local value is set.
(Defined by DependencyObjectExtensions.)
Public Extension MethodIsLocalValueSet(DependencyProperty)Overloaded.
Determines whether the specified dependency property local value is set.
(Defined by CommonExtensions.)
Public Extension MethodParentOfTypeT
Gets the parent element from the visual tree by given type.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodSerializePrimitives
Serializes some primitive properties of a control.
(Defined by SerializationExtensions.)
Public Extension MethodSetAssociatedLayoutBox (Defined by ExtensionMethods.)
Public Extension MethodSetIfDifferent
Sets the value of the dependencyProperty property if it's hasn't that value currently.
(Defined by CommonExtensions.)
Public Extension MethodSetLayout
Sets the location in the element in Canvas.
(Defined by CommonExtensions.)
Public Extension MethodSetLocation(Point)Overloaded.
Sets the location in the element in Canvas.
(Defined by CommonExtensions.)
Public Extension MethodSetLocation(Double, Double)Overloaded.
Sets the location in the element in Canvas.
(Defined by CommonExtensions.)
Public Extension MethodSlideInOverloaded.
Slides the given element into view. This is an extension method.
(Defined by CalendarAnimation.)
Public Extension MethodSlideIn(TimeSpan)Overloaded.
Slides the given element into view. This is an extension method.
(Defined by CalendarAnimation.)
Public Extension MethodSlideOutOverloaded.
Slides the given element out of view. This is an extension method.
(Defined by CalendarAnimation.)
Public Extension MethodSlideOut(TimeSpan)Overloaded.
Slides the given element out of view. This is an extension method.
(Defined by CalendarAnimation.)
Public Extension MethodTranslate(NullableDouble, NullableDouble, NullableDouble, NullableDouble, TimeSpan)Overloaded.
Translates the target element as requested by the parameters.
(Defined by CalendarAnimation.)
Public Extension MethodTranslate(NullableDouble, NullableDouble, NullableDouble, NullableDouble, TimeSpan, Action)Overloaded.
Translates the target element as requested by the parameters and executes the action request.
(Defined by CalendarAnimation.)
Top
Fields
  NameDescription
Public fieldStatic memberIsPasswordVisibleProperty
Identifies the IsPasswordVisible dependency property.
Public fieldStatic memberPasswordChangedEvent
Identifies the PasswordChanged routed event.
Public fieldStatic memberPasswordCharProperty
Identifies the PasswordChar dependency property.
Public fieldStatic memberShowPasswordButtonContentProperty
Identifies the ShowPasswordButtonContent dependency property.
Public fieldStatic memberShowPasswordButtonContentTemplateProperty
Identifies the ShowPasswordButtonContentTemplate dependency property.
Public fieldStatic memberShowPasswordButtonVisibilityProperty
Identifies the ShowPasswordButtonVisibility dependency property.
Top
Properties
  NameDescription
Public propertyCurrentText
Gets or sets the text of the TextBox. This property is meant to be used for TwoWay binding in order to be updated on each change of the text and not when the focus is lost.
(Inherited from RadWatermarkTextBox.)
Public propertyIsPasswordVisible
Gets value indicating whether the actual password is currently displayed.
Public propertyIsWatermarkVisible
Gets a value indicating whether the Watermark is visible or not.
(Inherited from RadWatermarkTextBox.)
Public propertyPassword
Gets or sets the current password as a string representation.
Public propertyPasswordChar
Gets or sets the masking character for RadPasswordBox. The default value is a bullet character (●).
Public propertySecurePassword
Gets the current password as a SecureString.
Public propertySelectionOnFocus
Specifies the modification over the selection when the control receives focus.
(Inherited from RadWatermarkTextBox.)
Public propertyShowPasswordButtonContent
Gets or sets the content to be shown in the button used to display the password at runtime.
Public propertyShowPasswordButtonContentTemplate
Gets or sets the template for presenting the content in the button used to display the password at runtime.
Public propertyShowPasswordButtonVisibility
Gets or sets value indicating whether the button used to display the password should be visible. The default value is Auto.
Public propertyWatermarkBehavior
Gets a value that specifies when the watermark content of control will be hidden.
(Inherited from RadWatermarkTextBox.)
Public propertyWatermarkContent
Gets or sets the content to be shown when the TextBox is empty and not focused.
(Inherited from RadWatermarkTextBox.)
Public propertyWatermarkTemplate
Gets or sets the template for presenting the content, shown when the TextBox is empty and not focused.
(Inherited from RadWatermarkTextBox.)
Top
Events
  NameDescription
Public eventPasswordChanged
Occurs when the value of the Password property changes.
Top
See Also