C# Класс ModernWPF.TextBoxUI

Contains various attached properties for TextBox and PasswordBox using the modern theme.
Наследование: System.Windows.DependencyObject
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
LeadingElementProperty System.Windows.DependencyProperty
ShowClearButtonProperty System.Windows.DependencyProperty
TrailingElementProperty System.Windows.DependencyProperty
WatermarkTextProperty System.Windows.DependencyProperty

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
WatermarkChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
pb_PasswordChanged ( object sender, RoutedEventArgs e ) : void

Описание методов

GetLeadingElement() публичный статический Метод

Gets the text box leading element.
public static GetLeadingElement ( DependencyObject obj ) : UIElement
obj System.Windows.DependencyObject The object.
Результат UIElement

GetShowClearButton() публичный статический Метод

Gets the show clear button flag.
public static GetShowClearButton ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject The object.
Результат bool

GetTrailingElement() публичный статический Метод

Gets the text box trailing element.
public static GetTrailingElement ( DependencyObject obj ) : UIElement
obj System.Windows.DependencyObject The object.
Результат UIElement

GetWatermarkText() публичный статический Метод

Gets the text box water mark text.
public static GetWatermarkText ( DependencyObject obj ) : string
obj System.Windows.DependencyObject The object.
Результат string

SetLeadingElement() публичный статический Метод

Sets the text box leading element.
public static SetLeadingElement ( DependencyObject obj, UIElement value ) : void
obj System.Windows.DependencyObject The object.
value UIElement The value.
Результат void

SetShowClearButton() публичный статический Метод

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.
Результат void

SetTrailingElement() публичный статический Метод

Sets the text box trailing element.
public static SetTrailingElement ( DependencyObject obj, UIElement value ) : void
obj System.Windows.DependencyObject The object.
value UIElement The value.
Результат void

SetWatermarkText() публичный статический Метод

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.
Результат void

Описание свойств

LeadingElementProperty публичное статическое свойство

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
Результат System.Windows.DependencyProperty

ShowClearButtonProperty публичное статическое свойство

The DP flag on whether to show clear text button in a textbox in modern theme.
public static DependencyProperty,System.Windows ShowClearButtonProperty
Результат System.Windows.DependencyProperty

TrailingElementProperty публичное статическое свойство

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
Результат System.Windows.DependencyProperty

WatermarkTextProperty публичное статическое свойство

The DP on a text box in modern theme that shows this watermark when empty.
public static DependencyProperty,System.Windows WatermarkTextProperty
Результат System.Windows.DependencyProperty