C# Class MahApps.Metro.Controls.TextboxHelper

Password watermarking code from: http://prabu-guru.blogspot.com/2010/06/how-to-add-watermark-text-to-textbox.html
Inheritance: System.Windows.DependencyObject
Afficher le fichier Open project: Irdis/VSTalk

Méthodes publiques

Свойство Type Description
ButtonCommandProperty System.Windows.DependencyProperty
ButtonContentProperty System.Windows.DependencyProperty
ButtonTemplateProperty System.Windows.DependencyProperty
ClearTextButtonProperty System.Windows.DependencyProperty
IsMonitoringProperty System.Windows.DependencyProperty
SelectAllOnFocusProperty System.Windows.DependencyProperty
TextLengthProperty System.Windows.DependencyProperty
WatermarkProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
GetButtonCommand ( DependencyObject d ) : ICommand
GetButtonContent ( DependencyObject d ) : object
GetButtonTemplate ( DependencyObject d ) : System.Windows.Controls.ControlTemplate
GetClearTextButton ( DependencyObject d ) : bool
GetSelectAllOnFocus ( DependencyObject obj ) : bool
GetWatermark ( DependencyObject obj ) : string
SetButtonCommand ( DependencyObject obj, ICommand value ) : void
SetButtonContent ( DependencyObject obj, object value ) : void
SetButtonTemplate ( DependencyObject obj, System.Windows.Controls.ControlTemplate value ) : void
SetClearTextButton ( DependencyObject obj, bool value ) : void
SetIsMonitoring ( DependencyObject obj, bool value ) : void
SetSelectAllOnFocus ( DependencyObject obj, bool value ) : void
SetWatermark ( DependencyObject obj, string value ) : void

Private Methods

Méthode Description
ButtonClicked ( object sender, RoutedEventArgs e ) : void
ButtonCommandOrClearTextChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnIsMonitoringChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
PassBoxLoaded ( object sender, RoutedEventArgs e ) : void
PasswordChanged ( object sender, RoutedEventArgs e ) : void
PasswordGotFocus ( object sender, RoutedEventArgs e ) : void
SetTextLength ( DependencyObject obj, int value ) : void
TextBoxGotFocus ( object sender, RoutedEventArgs e ) : void
TextBoxLoaded ( object sender, RoutedEventArgs e ) : void
TextChanged ( object sender, System.Windows.Controls.TextChangedEventArgs e ) : void

Method Details

GetButtonCommand() public static méthode

public static GetButtonCommand ( DependencyObject d ) : ICommand
d System.Windows.DependencyObject
Résultat ICommand

GetButtonContent() public static méthode

public static GetButtonContent ( DependencyObject d ) : object
d System.Windows.DependencyObject
Résultat object

GetButtonTemplate() public static méthode

public static GetButtonTemplate ( DependencyObject d ) : System.Windows.Controls.ControlTemplate
d System.Windows.DependencyObject
Résultat System.Windows.Controls.ControlTemplate

GetClearTextButton() public static méthode

public static GetClearTextButton ( DependencyObject d ) : bool
d System.Windows.DependencyObject
Résultat bool

GetSelectAllOnFocus() public static méthode

public static GetSelectAllOnFocus ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
Résultat bool

GetWatermark() public static méthode

public static GetWatermark ( DependencyObject obj ) : string
obj System.Windows.DependencyObject
Résultat string

SetButtonCommand() public static méthode

public static SetButtonCommand ( DependencyObject obj, ICommand value ) : void
obj System.Windows.DependencyObject
value ICommand
Résultat void

SetButtonContent() public static méthode

public static SetButtonContent ( DependencyObject obj, object value ) : void
obj System.Windows.DependencyObject
value object
Résultat void

SetButtonTemplate() public static méthode

public static SetButtonTemplate ( DependencyObject obj, System.Windows.Controls.ControlTemplate value ) : void
obj System.Windows.DependencyObject
value System.Windows.Controls.ControlTemplate
Résultat void

SetClearTextButton() public static méthode

public static SetClearTextButton ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
Résultat void

SetIsMonitoring() public static méthode

public static SetIsMonitoring ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
Résultat void

SetSelectAllOnFocus() public static méthode

public static SetSelectAllOnFocus ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
Résultat void

SetWatermark() public static méthode

public static SetWatermark ( DependencyObject obj, string value ) : void
obj System.Windows.DependencyObject
value string
Résultat void

Property Details

ButtonCommandProperty public_oe static_oe property

public static DependencyProperty,System.Windows ButtonCommandProperty
Résultat System.Windows.DependencyProperty

ButtonContentProperty public_oe static_oe property

public static DependencyProperty,System.Windows ButtonContentProperty
Résultat System.Windows.DependencyProperty

ButtonTemplateProperty public_oe static_oe property

public static DependencyProperty,System.Windows ButtonTemplateProperty
Résultat System.Windows.DependencyProperty

ClearTextButtonProperty public_oe static_oe property

public static DependencyProperty,System.Windows ClearTextButtonProperty
Résultat System.Windows.DependencyProperty

IsMonitoringProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsMonitoringProperty
Résultat System.Windows.DependencyProperty

SelectAllOnFocusProperty public_oe static_oe property

public static DependencyProperty,System.Windows SelectAllOnFocusProperty
Résultat System.Windows.DependencyProperty

TextLengthProperty public_oe static_oe property

public static DependencyProperty,System.Windows TextLengthProperty
Résultat System.Windows.DependencyProperty

WatermarkProperty public_oe static_oe property

public static DependencyProperty,System.Windows WatermarkProperty
Résultat System.Windows.DependencyProperty