C# Class csShared.Controls.WatermarkService

Class that provides the Watermark attached property
Mostrar archivo Open project: TNOCS/csTouch

Public Properties

Property Type Description
WatermarkProperty System.Windows.DependencyProperty

Public Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

GetWatermark() public static method

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
return object

SetWatermark() public static method

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
return void

Property Details

WatermarkProperty public_oe static_oe property

Watermark Attached Dependency Property
public static DependencyProperty,System.Windows WatermarkProperty
return System.Windows.DependencyProperty