C# Class WinRTXamlToolkit.Controls.WatermarkTextBox

Inheritance: Windows.UI.Xaml.Controls.TextBox
Show file Open project: xyzzer/WinRTXamlToolkit Class Usage Examples

Public Properties

Property Type Description
WatermarkProperty Windows.UI.Xaml.DependencyProperty
WatermarkTextProperty Windows.UI.Xaml.DependencyProperty
WatermarkTextStyleProperty Windows.UI.Xaml.DependencyProperty

Public Methods

Method Description
WatermarkTextBox ( ) : System.Linq

Initializes a new instance of the WatermarkTextBox class.

Protected Methods

Method Description
OnApplyTemplate ( ) : void

Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.

OnGotFocus ( Windows e ) : void

Called before the GotFocus event occurs.

OnLostFocus ( Windows e ) : void

Called before the LostFocus event occurs.

Private Methods

Method Description
OnTextChanged ( object sender, TextChangedEventArgs e ) : void
UpdateWatermarkVisualState ( ) : void
UpdateWatermarkVisualState ( bool isFocused ) : void

Method Details

OnApplyTemplate() protected method

Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.
protected OnApplyTemplate ( ) : void
return void

OnGotFocus() protected method

Called before the GotFocus event occurs.
protected OnGotFocus ( Windows e ) : void
e Windows The data for the event.
return void

OnLostFocus() protected method

Called before the LostFocus event occurs.
protected OnLostFocus ( Windows e ) : void
e Windows The data for the event.
return void

WatermarkTextBox() public method

Initializes a new instance of the WatermarkTextBox class.
public WatermarkTextBox ( ) : System.Linq
return System.Linq

Property Details

WatermarkProperty public static property

Watermark Dependency Property
public static DependencyProperty,Windows.UI.Xaml WatermarkProperty
return Windows.UI.Xaml.DependencyProperty

WatermarkTextProperty public static property

WatermarkText Dependency Property
public static DependencyProperty,Windows.UI.Xaml WatermarkTextProperty
return Windows.UI.Xaml.DependencyProperty

WatermarkTextStyleProperty public static property

WatermarkTextStyle Dependency Property
public static DependencyProperty,Windows.UI.Xaml WatermarkTextStyleProperty
return Windows.UI.Xaml.DependencyProperty