Search Results for

    Show / Hide Table of Contents

    Class PasswordBoxService

    Attached behavior for PasswordBox that will invoke an ICommand to send the SecureString of the SecurePassword property to a command target e.g., view model using a registered ICommand registered with the CommandProperty attached property.

    Inheritance
    Object
    DispatcherObject
    DependencyObject
    PasswordBoxService
    Inherited Members
    DependencyObject.ClearValue(DependencyProperty)
    DependencyObject.ClearValue(DependencyPropertyKey)
    DependencyObject.CoerceValue(DependencyProperty)
    DependencyObject.Equals(Object)
    DependencyObject.GetHashCode()
    DependencyObject.GetLocalValueEnumerator()
    DependencyObject.GetValue(DependencyProperty)
    DependencyObject.InvalidateProperty(DependencyProperty)
    DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
    DependencyObject.ReadLocalValue(DependencyProperty)
    DependencyObject.SetCurrentValue(DependencyProperty, Object)
    DependencyObject.SetValue(DependencyProperty, Object)
    DependencyObject.SetValue(DependencyPropertyKey, Object)
    DependencyObject.ShouldSerializeProperty(DependencyProperty)
    DependencyObject.DependencyObjectType
    DependencyObject.IsSealed
    DispatcherObject.Dispatcher
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: BionicCode.Utilities.Net
    Assembly: BionicCode.Utilities.Net.Wpf.dll
    Syntax
    public class PasswordBoxService : DependencyObject
    Remarks

    The attached behavior does at no point unwrap the the SecureString returned from the SecurePassword property, nor does it access the security critical Password property. The SecurePassword value is simply forwarded to the command target of the registered CommandProperty attached property.

    Fields

    | Improve this Doc View Source

    CommandProperty

    Holds the ICommand which will be invoked with the SecurePassword of type SecureString as command parameter.

    Declaration
    public static readonly DependencyProperty CommandProperty
    Field Value
    Type Description
    DependencyProperty

    An ICommand implementation.

    Methods

    | Improve this Doc View Source

    GetCommand(DependencyObject)

    The set method of the attached PasswordBox property.

    Declaration
    public static ICommand GetCommand(DependencyObject attachingElement)
    Parameters
    Type Name Description
    DependencyObject attachingElement

    The PasswordBox element.

    Returns
    Type Description
    ICommand

    The ICommand implementation registered with the attachingElement.

    | Improve this Doc View Source

    SetCommand(DependencyObject, ICommand)

    The set method of the attached PasswordBox property.

    Declaration
    public static void SetCommand(DependencyObject attachingElement, ICommand value)
    Parameters
    Type Name Description
    DependencyObject attachingElement

    The PasswordBox element.

    ICommand value

    An ICommand implementation.

    Extension Methods

    HelperExtensionsCommon.ToDictionary(Object)
    HelperExtensionsCommon.ToFlatDictionary(Object)
    HelperExtensions.TryFindVisualParentElement<TParent>(DependencyObject, out TParent)
    HelperExtensions.TryFindVisualParentElementByName<TChild>(DependencyObject, String, out TChild)
    HelperExtensions.TryFindVisualChildElement<TChild>(DependencyObject, out TChild)
    HelperExtensions.TryFindVisualChildElementByName<TChild>(DependencyObject, String, out TChild)
    HelperExtensions.EnumerateVisualChildElements<TChildren>(DependencyObject)

    See Also

    See advanced example
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX