Show / Hide Table of Contents

Class PasswordBoxMonitor

Contains a set of attached dependency properties used to monitor and control a PasswordBox.

Inheritance
object
DispatcherObject
DependencyObject
PasswordBoxMonitor
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: TheXDS.MCART.Component
Assembly: MCART.Wpf.Common.dll
Syntax
public class PasswordBoxMonitor : DependencyObject

Fields

| Edit this page View Source

IsMonitoringDependencyProperty

Identifies a property that indicates whether the PasswordBox is being monitored.

Declaration
public static readonly DependencyProperty IsMonitoringDependencyProperty
Field Value
Type Description
DependencyProperty
| Edit this page View Source

MonitoringProperty

Enables monitoring of a PasswordBox.

Declaration
public static readonly DependencyProperty MonitoringProperty
Field Value
Type Description
DependencyProperty
| Edit this page View Source

PasswordLengthProperty

Gets the length of the password currently shown in the PasswordBox.

Declaration
public static readonly DependencyProperty PasswordLengthProperty
Field Value
Type Description
DependencyProperty
| Edit this page View Source

PasswordProperty

Emulates a bindable version of Password.

Declaration
public static readonly DependencyProperty PasswordProperty
Field Value
Type Description
DependencyProperty
| Edit this page View Source

SecurePasswordProperty

Emulates a bindable version of SecurePassword.

Declaration
public static readonly DependencyProperty SecurePasswordProperty
Field Value
Type Description
DependencyProperty

Methods

| Edit this page View Source

GetIsMonitoring(DependencyObject)

Gets whether the specified PasswordBox is being monitored.

Declaration
public static bool GetIsMonitoring(DependencyObject obj)
Parameters
Type Name Description
DependencyObject obj

The instance to read the attached dependency property's value from.

Returns
Type Description
bool

true if the instance monitors the specified PasswordBox, otherwise false.

| Edit this page View Source

GetMonitoring(DependencyObject)

Gets the value of the attached dependency property MonitoringProperty.

Declaration
public static PasswordBoxMonitor.MonitorLevel GetMonitoring(DependencyObject obj)
Parameters
Type Name Description
DependencyObject obj

The instance to read the attached dependency property's value from.

Returns
Type Description
PasswordBoxMonitor.MonitorLevel

The active monitoring level for the PasswordBox.

| Edit this page View Source

GetPassword(DependencyObject)

Gets the value of the attached dependency property PasswordProperty.

Declaration
public static string GetPassword(DependencyObject obj)
Parameters
Type Name Description
DependencyObject obj

The instance to read the attached dependency property's value from.

Returns
Type Description
string

The password set on the monitored PasswordBox.

| Edit this page View Source

GetPasswordLength(DependencyObject)

Gets the value of the attached dependency property PasswordLengthProperty.

Declaration
public static int GetPasswordLength(DependencyObject obj)
Parameters
Type Name Description
DependencyObject obj

The instance to read the attached dependency property's value from.

Returns
Type Description
int

The password length for the monitored PasswordBox.

| Edit this page View Source

GetSecurePassword(DependencyObject)

Gets the value of the attached dependency property SecurePasswordProperty.

Declaration
public static SecureString GetSecurePassword(DependencyObject obj)
Parameters
Type Name Description
DependencyObject obj

The instance to read the attached dependency property's value from.

Returns
Type Description
SecureString

The secure password set on the monitored PasswordBox.

| Edit this page View Source

SetMonitoring(DependencyObject, MonitorLevel)

Sets the value of the attached dependency property MonitoringProperty on the specified object.

Declaration
public static void SetMonitoring(DependencyObject obj, PasswordBoxMonitor.MonitorLevel value)
Parameters
Type Name Description
DependencyObject obj

The object on which to set the attached dependency property value.

PasswordBoxMonitor.MonitorLevel value

The value to set for the attached property.

| Edit this page View Source

SetPassword(DependencyObject, string)

Sets the value of the attached dependency property PasswordProperty on the specified object.

Declaration
public static void SetPassword(DependencyObject obj, string value)
Parameters
Type Name Description
DependencyObject obj

The object on which to set the attached dependency property value.

string value

The value to set for the attached property.

| Edit this page View Source

SetPasswordLength(DependencyObject, int)

Sets the value of the attached dependency property PasswordLengthProperty on the specified object.

Declaration
public static void SetPasswordLength(DependencyObject obj, int value)
Parameters
Type Name Description
DependencyObject obj

The object on which to set the attached dependency property value.

int value

The value to set for the attached property.

| Edit this page View Source

SetSecurePassword(DependencyObject, SecureString)

Sets the value of the attached dependency property SecurePasswordProperty on the specified object.

Declaration
public static void SetSecurePassword(DependencyObject obj, SecureString value)
Parameters
Type Name Description
DependencyObject obj

The object on which to set the attached dependency property value.

SecureString value

The value to set for the attached property.

Extension Methods

Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Common.IfNotNull<T>(T?, Action<T>)
Objects.Itself<T>(T)
Objects.ShallowClone<T>(T)
Objects.ShallowCopyTo<T>(T, T)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX