C# Class WinRTXamlToolkit.Controls.Extensions.PasswordBoxFocusExtensions

Contains an extension for automatically switching focus to next field when the cursor reaches the MexLength position.
ファイルを表示 Open project: xyzzer/WinRTXamlToolkit

Public Properties

Property Type Description
AutoSelectOnFocusProperty Windows.UI.Xaml.DependencyProperty
AutoTabOnMaxLengthProperty Windows.UI.Xaml.DependencyProperty
PasswordAutoSelectOnFocusHandlerProperty Windows.UI.Xaml.DependencyProperty
PasswordAutoTabOnMaxLengthHandlerProperty Windows.UI.Xaml.DependencyProperty

Public Methods

Method Description
GetAutoSelectOnFocus ( DependencyObject d ) : bool

Gets the AutoSelectOnFocus property. This dependency property indicates whether the content should be selected when the control receives focus.

GetAutoTabOnMaxLength ( DependencyObject d ) : bool

Gets the AutoTabOnMaxLength property. This dependency property indicates whether the focus should switch to next element when the cursor moves to the position at maximum length of the field..

SetAutoSelectOnFocus ( DependencyObject d, bool value ) : void

Sets the AutoSelectOnFocus property. This dependency property indicates whether the content should be selected when the control receives focus.

SetAutoTabOnMaxLength ( DependencyObject d, bool value ) : void

Sets the AutoTabOnMaxLength property. This dependency property indicates whether the focus should switch to next element when the cursor moves to the position at maximum length of the field..

Private Methods

Method Description
GetPasswordAutoSelectOnFocusHandler ( DependencyObject d ) : PasswordAutoSelectOnFocusHandler
GetPasswordAutoTabOnMaxLengthHandler ( DependencyObject d ) : PasswordAutoTabOnMaxLengthHandler
OnAutoSelectOnFocusChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the AutoSelectOnFocus property.

OnAutoTabOnMaxLengthChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the AutoTabOnMaxLength property.

SetPasswordAutoSelectOnFocusHandler ( DependencyObject d, PasswordAutoSelectOnFocusHandler value ) : void
SetPasswordAutoTabOnMaxLengthHandler ( DependencyObject d, PasswordAutoTabOnMaxLengthHandler value ) : void

Method Details

GetAutoSelectOnFocus() public static method

Gets the AutoSelectOnFocus property. This dependency property indicates whether the content should be selected when the control receives focus.
public static GetAutoSelectOnFocus ( DependencyObject d ) : bool
d Windows.UI.Xaml.DependencyObject
return bool

GetAutoTabOnMaxLength() public static method

Gets the AutoTabOnMaxLength property. This dependency property indicates whether the focus should switch to next element when the cursor moves to the position at maximum length of the field..
public static GetAutoTabOnMaxLength ( DependencyObject d ) : bool
d Windows.UI.Xaml.DependencyObject
return bool

SetAutoSelectOnFocus() public static method

Sets the AutoSelectOnFocus property. This dependency property indicates whether the content should be selected when the control receives focus.
public static SetAutoSelectOnFocus ( DependencyObject d, bool value ) : void
d Windows.UI.Xaml.DependencyObject
value bool
return void

SetAutoTabOnMaxLength() public static method

Sets the AutoTabOnMaxLength property. This dependency property indicates whether the focus should switch to next element when the cursor moves to the position at maximum length of the field..
public static SetAutoTabOnMaxLength ( DependencyObject d, bool value ) : void
d Windows.UI.Xaml.DependencyObject
value bool
return void

Property Details

AutoSelectOnFocusProperty public_oe static_oe property

AutoSelectOnFocus Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml AutoSelectOnFocusProperty
return Windows.UI.Xaml.DependencyProperty

AutoTabOnMaxLengthProperty public_oe static_oe property

AutoTabOnMaxLength Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml AutoTabOnMaxLengthProperty
return Windows.UI.Xaml.DependencyProperty

PasswordAutoSelectOnFocusHandlerProperty public_oe static_oe property

PasswordAutoSelectOnFocusHandler Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml PasswordAutoSelectOnFocusHandlerProperty
return Windows.UI.Xaml.DependencyProperty

PasswordAutoTabOnMaxLengthHandlerProperty public_oe static_oe property

PasswordAutoTabOnMaxLengthHandler Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml PasswordAutoTabOnMaxLengthHandlerProperty
return Windows.UI.Xaml.DependencyProperty