C# Class ModernWPF.TextBoxUI

Contains various attached properties for TextBox and PasswordBox using the modern theme.
Inheritance: System.Windows.DependencyObject
Afficher le fichier Open project: soukoku/ModernWPF

Méthodes publiques

Свойство Type Description
LeadingElementProperty System.Windows.DependencyProperty
ShowClearButtonProperty System.Windows.DependencyProperty
TrailingElementProperty System.Windows.DependencyProperty
WatermarkTextProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
GetLeadingElement ( DependencyObject obj ) : UIElement

Gets the text box leading element.

GetShowClearButton ( DependencyObject obj ) : bool

Gets the show clear button flag.

GetTrailingElement ( DependencyObject obj ) : UIElement

Gets the text box trailing element.

GetWatermarkText ( DependencyObject obj ) : string

Gets the text box water mark text.

SetLeadingElement ( DependencyObject obj, UIElement value ) : void

Sets the text box leading element.

SetShowClearButton ( DependencyObject obj, bool value ) : void

Sets the show clear button flag.

SetTrailingElement ( DependencyObject obj, UIElement value ) : void

Sets the text box trailing element.

SetWatermarkText ( DependencyObject obj, string value ) : void

Sets the text box water mark text.

Private Methods

Méthode Description
WatermarkChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
pb_PasswordChanged ( object sender, RoutedEventArgs e ) : void

Method Details

GetLeadingElement() public static méthode

Gets the text box leading element.
public static GetLeadingElement ( DependencyObject obj ) : UIElement
obj System.Windows.DependencyObject The object.
Résultat UIElement

GetShowClearButton() public static méthode

Gets the show clear button flag.
public static GetShowClearButton ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject The object.
Résultat bool

GetTrailingElement() public static méthode

Gets the text box trailing element.
public static GetTrailingElement ( DependencyObject obj ) : UIElement
obj System.Windows.DependencyObject The object.
Résultat UIElement

GetWatermarkText() public static méthode

Gets the text box water mark text.
public static GetWatermarkText ( DependencyObject obj ) : string
obj System.Windows.DependencyObject The object.
Résultat string

SetLeadingElement() public static méthode

Sets the text box leading element.
public static SetLeadingElement ( DependencyObject obj, UIElement value ) : void
obj System.Windows.DependencyObject The object.
value UIElement The value.
Résultat void

SetShowClearButton() public static méthode

Sets the show clear button flag.
public static SetShowClearButton ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject The object.
value bool the flag value.
Résultat void

SetTrailingElement() public static méthode

Sets the text box trailing element.
public static SetTrailingElement ( DependencyObject obj, UIElement value ) : void
obj System.Windows.DependencyObject The object.
value UIElement The value.
Résultat void

SetWatermarkText() public static méthode

Sets the text box water mark text.
public static SetWatermarkText ( DependencyObject obj, string value ) : void
obj System.Windows.DependencyObject The object.
value string The value.
Résultat void

Property Details

LeadingElementProperty public_oe static_oe property

The DP on a text box in modern theme that contains a leading element (e.g. a search icon).
public static DependencyProperty,System.Windows LeadingElementProperty
Résultat System.Windows.DependencyProperty

ShowClearButtonProperty public_oe static_oe property

The DP flag on whether to show clear text button in a textbox in modern theme.
public static DependencyProperty,System.Windows ShowClearButtonProperty
Résultat System.Windows.DependencyProperty

TrailingElementProperty public_oe static_oe property

The DP on a text box in modern theme that contains a trailing element (e.g. a search icon).
public static DependencyProperty,System.Windows TrailingElementProperty
Résultat System.Windows.DependencyProperty

WatermarkTextProperty public_oe static_oe property

The DP on a text box in modern theme that shows this watermark when empty.
public static DependencyProperty,System.Windows WatermarkTextProperty
Résultat System.Windows.DependencyProperty