C# Class WPFOfficeTheme.MaskTextBox

Inheritance: System.Windows.Controls.TextBox, INotifyPropertyChanged
Exibir arquivo Open project: alexsharoff/wpf-office-theme

Public Properties

Property Type Description
BlankCharacterProperty System.Windows.DependencyProperty
MaskProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
AppendCharacter void
GetFirstValidPosition int
GetLastValidPosition int
GetMaskCharType MaskCharType
GetNextValidPositionFrom int
GetNextValidPositionFrom int
GetNextValidPositionFrom int
InitializeMask void
IsNumber bool
IsNumber bool
NotifyPropertyChanged void
UpdateCharacter void
ValidateInput bool

Public Methods

Method Description
GetCleanValue ( ) : string
MaskTextBox ( ) : System

Protected Methods

Method Description
OnInitialized ( EventArgs e ) : void
OnPreviewKeyDown ( System e ) : void
OnPreviewTextInput ( System e ) : void
OnTextChanged ( System.Windows.Controls.TextChangedEventArgs e ) : void

Private Methods

Method Description
AppendCharacter ( char c ) : void
GetFirstValidPosition ( ) : int
GetLastValidPosition ( ) : int
GetMaskCharType ( int index ) : MaskCharType
GetNextValidPositionFrom ( int actualPosition ) : int
GetNextValidPositionFrom ( int actualPosition, bool searchForward ) : int
GetNextValidPositionFrom ( int actualPosition, bool searchForward, int &leaps ) : int
InitializeMask ( ) : void
IsNumber ( Key key ) : bool
IsNumber ( int key ) : bool
NotifyPropertyChanged ( String info ) : void
UpdateCharacter ( string s, char c, int index ) : void
ValidateInput ( int index, char input ) : bool

Method Details

GetCleanValue() public method

public GetCleanValue ( ) : string
return string

MaskTextBox() public method

public MaskTextBox ( ) : System
return System

OnInitialized() protected method

protected OnInitialized ( EventArgs e ) : void
e System.EventArgs
return void

OnPreviewKeyDown() protected method

protected OnPreviewKeyDown ( System e ) : void
e System
return void

OnPreviewTextInput() protected method

protected OnPreviewTextInput ( System e ) : void
e System
return void

OnTextChanged() protected method

protected OnTextChanged ( System.Windows.Controls.TextChangedEventArgs e ) : void
e System.Windows.Controls.TextChangedEventArgs
return void

Property Details

BlankCharacterProperty public_oe static_oe property

public static DependencyProperty,System.Windows BlankCharacterProperty
return System.Windows.DependencyProperty

MaskProperty public_oe static_oe property

public static DependencyProperty,System.Windows MaskProperty
return System.Windows.DependencyProperty