C# Класс csShared.Controls.WatermarkService

Class that provides the Watermark attached property
Показать файл Открыть проект

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

Свойство Тип Описание
WatermarkProperty System.Windows.DependencyProperty

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

Метод Описание
GetWatermark ( DependencyObject d ) : object

Gets the Watermark property. This dependency property indicates the watermark for the control.

SetWatermark ( DependencyObject d, object value ) : void

Sets the Watermark property. This dependency property indicates the watermark for the control.

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

Метод Описание
Control_GotKeyboardFocus ( object sender, RoutedEventArgs e ) : void

Handle the GotFocus event on the control

Control_Loaded ( object sender, RoutedEventArgs e ) : void

Handle the Loaded and LostFocus event on the control

ItemsChanged ( object sender, ItemsChangedEventArgs e ) : void

Event handler for the items changed event

ItemsSourceChanged ( object sender, EventArgs e ) : void

Event handler for the items source changed event

OnWatermarkChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles changes to the Watermark property.

RemoveWatermark ( UIElement control ) : void

Remove the watermark from the specified element

ShouldShowWatermark ( Control c ) : bool

Indicates whether or not the watermark should be shown on the specified control

ShowWatermark ( Control control ) : void

Show the watermark on the specified control

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

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

Gets the Watermark property. This dependency property indicates the watermark for the control.
public static GetWatermark ( DependencyObject d ) : object
d System.Windows.DependencyObject to get the property from
Результат object

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

Sets the Watermark property. This dependency property indicates the watermark for the control.
public static SetWatermark ( DependencyObject d, object value ) : void
d System.Windows.DependencyObject to set the property on
value object value of the property
Результат void

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

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

Watermark Attached Dependency Property
public static DependencyProperty,System.Windows WatermarkProperty
Результат System.Windows.DependencyProperty