C# Class WinRTXamlToolkit.Controls.Extensions.TextBoxFocusExtensions

Contains an extension for automatically switching focus to next field when the cursor reaches the MexLength position.
Exibir arquivo Open project: xyzzer/WinRTXamlToolkit

Public Properties

Property Type Description
AutoSelectOnFocusHandlerProperty Windows.UI.Xaml.DependencyProperty
AutoSelectOnFocusProperty Windows.UI.Xaml.DependencyProperty
AutoTabOnMaxLengthHandlerProperty Windows.UI.Xaml.DependencyProperty
AutoTabOnMaxLengthProperty 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
GetAutoSelectOnFocusHandler ( DependencyObject d ) : AutoSelectOnFocusHandler
GetAutoTabOnMaxLengthHandler ( DependencyObject d ) : AutoTabOnMaxLengthHandler
OnAutoSelectOnFocusChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the AutoSelectOnFocus property.

OnAutoTabOnMaxLengthChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the AutoTabOnMaxLength property.

SetAutoSelectOnFocusHandler ( DependencyObject d, AutoSelectOnFocusHandler value ) : void
SetAutoTabOnMaxLengthHandler ( DependencyObject d, AutoTabOnMaxLengthHandler 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

AutoSelectOnFocusHandlerProperty public_oe static_oe property

AutoSelectOnFocusHandler Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml AutoSelectOnFocusHandlerProperty
return Windows.UI.Xaml.DependencyProperty

AutoSelectOnFocusProperty public_oe static_oe property

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

AutoTabOnMaxLengthHandlerProperty public_oe static_oe property

AutoTabOnMaxLengthHandler Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml AutoTabOnMaxLengthHandlerProperty
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