C# Class Naylah.Toolkit.UWP.Behaviors.NumericTextBoxBehavior

Inheritance: Windows.UI.Xaml.DependencyObject, IBehavior
显示文件 Open project: NaylahProject/Naylah.Toolkit.UWP

Public Properties

Property Type Description
NumericDecimalValueProperty Windows.UI.Xaml.DependencyProperty
NumericFormatProperty Windows.UI.Xaml.DependencyProperty
TypeProperty Windows.UI.Xaml.DependencyProperty

Public Methods

Method Description
Attach ( DependencyObject associatedObject ) : void
Detach ( ) : void
GetCleanNumberStack ( ) : string
SetTexts ( string text ) : void

Private Methods

Method Description
AddNumberStack ( int num ) : void
AssociatedObjectAsTextBox_KeyDown ( object sender, KeyRoutedEventArgs e ) : void
AssociatedObjectAsTextBox_TextChanged ( object sender, TextChangedEventArgs e ) : void
GetDigitBykey ( VirtualKey key ) : int?
GetNumericNumberFormated ( ) : string
NumericValueChangedCallback ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
RemoveNumberStack ( ) : void
SetStackNumberToNumeric ( string nv ) : void
TypeChangedCallback ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Method Details

Attach() public method

public Attach ( DependencyObject associatedObject ) : void
associatedObject Windows.UI.Xaml.DependencyObject
return void

Detach() public method

public Detach ( ) : void
return void

GetCleanNumberStack() public method

public GetCleanNumberStack ( ) : string
return string

SetTexts() public method

public SetTexts ( string text ) : void
text string
return void

Property Details

NumericDecimalValueProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml NumericDecimalValueProperty
return Windows.UI.Xaml.DependencyProperty

NumericFormatProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml NumericFormatProperty
return Windows.UI.Xaml.DependencyProperty

TypeProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml TypeProperty
return Windows.UI.Xaml.DependencyProperty