C# Class WinRTXamlToolkit.Controls.WatermarkPasswordBox

Inheritance: Windows.UI.Xaml.Controls.Control
显示文件 Open project: xyzzer/WinRTXamlToolkit

Public Properties

Property Type Description
MaxLengthProperty Windows.UI.Xaml.DependencyProperty
PasswordCharProperty Windows.UI.Xaml.DependencyProperty
PasswordProperty Windows.UI.Xaml.DependencyProperty
PasswordRevealModeProperty Windows.UI.Xaml.DependencyProperty
WatermarkProperty Windows.UI.Xaml.DependencyProperty
WatermarkTextProperty Windows.UI.Xaml.DependencyProperty
WatermarkTextStyleProperty Windows.UI.Xaml.DependencyProperty
WatermarkTextStyleRelayProperty Windows.UI.Xaml.DependencyProperty

Public Methods

Method Description
GetWatermark ( DependencyObject d ) : object

Gets the Watermark property. This dependency property indicates an arbitrary content to use as a Watermark.

GetWatermarkText ( DependencyObject d ) : string

Gets the WatermarkText property. This dependency property indicates the watermark text to show to the user.

GetWatermarkTextStyleRelay ( DependencyObject d ) : Style

Gets the WatermarkTextStyleRelay property. This dependency property indicates the style of the watermark TextBlock.

SelectAll ( ) : void

Selects all the character in the PasswordBox.

SetWatermark ( DependencyObject d, object value ) : void

Sets the Watermark property. This dependency property indicates an arbitrary content to use as a Watermark.

SetWatermarkText ( DependencyObject d, string value ) : void

Sets the WatermarkText property. This dependency property indicates the watermark text to show to the user.

SetWatermarkTextStyleRelay ( DependencyObject d, Style value ) : void

Sets the WatermarkTextStyleRelay property. This dependency property indicates the style of the watermark TextBlock.

WatermarkPasswordBox ( ) : System.Linq

Initializes a new instance of the WatermarkPasswordBox 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.

Private Methods

Method Description
InnerPasswordBoxOnContextMenuOpening ( object sender, ContextMenuEventArgs contextMenuEventArgs ) : void
InnerPasswordBoxOnGotFocus ( object sender, RoutedEventArgs e ) : void
InnerPasswordBoxOnKeyUp ( object sender, KeyRoutedEventArgs e ) : void
InnerPasswordBoxOnLostFocus ( object sender, RoutedEventArgs e ) : void
InnerPasswordBoxOnPasswordChanged ( object sender, RoutedEventArgs e ) : void
OnLoaded ( object sender, RoutedEventArgs routedEventArgs ) : void
UpdateWatermarkVisualState ( ) : void
UpdateWatermarkVisualState ( bool isFocused, bool useTransitions = true ) : void

Method Details

GetWatermark() public static method

Gets the Watermark property. This dependency property indicates an arbitrary content to use as a Watermark.
public static GetWatermark ( DependencyObject d ) : object
d Windows.UI.Xaml.DependencyObject
return object

GetWatermarkText() public static method

Gets the WatermarkText property. This dependency property indicates the watermark text to show to the user.
public static GetWatermarkText ( DependencyObject d ) : string
d Windows.UI.Xaml.DependencyObject
return string

GetWatermarkTextStyleRelay() public static method

Gets the WatermarkTextStyleRelay property. This dependency property indicates the style of the watermark TextBlock.
public static GetWatermarkTextStyleRelay ( DependencyObject d ) : Style
d Windows.UI.Xaml.DependencyObject
return Windows.UI.Xaml.Style

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

SelectAll() public method

Selects all the character in the PasswordBox.
public SelectAll ( ) : void
return void

SetWatermark() public static method

Sets the Watermark property. This dependency property indicates an arbitrary content to use as a Watermark.
public static SetWatermark ( DependencyObject d, object value ) : void
d Windows.UI.Xaml.DependencyObject
value object
return void

SetWatermarkText() public static method

Sets the WatermarkText property. This dependency property indicates the watermark text to show to the user.
public static SetWatermarkText ( DependencyObject d, string value ) : void
d Windows.UI.Xaml.DependencyObject
value string
return void

SetWatermarkTextStyleRelay() public static method

Sets the WatermarkTextStyleRelay property. This dependency property indicates the style of the watermark TextBlock.
public static SetWatermarkTextStyleRelay ( DependencyObject d, Style value ) : void
d Windows.UI.Xaml.DependencyObject
value Windows.UI.Xaml.Style
return void

WatermarkPasswordBox() public method

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

Property Details

MaxLengthProperty public_oe static_oe property

MaxLength Dependency Property
public static DependencyProperty,Windows.UI.Xaml MaxLengthProperty
return Windows.UI.Xaml.DependencyProperty

PasswordCharProperty public_oe static_oe property

PasswordChar Dependency Property
public static DependencyProperty,Windows.UI.Xaml PasswordCharProperty
return Windows.UI.Xaml.DependencyProperty

PasswordProperty public_oe static_oe property

Password Dependency Property
public static DependencyProperty,Windows.UI.Xaml PasswordProperty
return Windows.UI.Xaml.DependencyProperty

PasswordRevealModeProperty public_oe static_oe property

PasswordRevealModeProperty Dependency Property
public static DependencyProperty,Windows.UI.Xaml PasswordRevealModeProperty
return Windows.UI.Xaml.DependencyProperty

WatermarkProperty public_oe static_oe property

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

WatermarkTextProperty public_oe static_oe property

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

WatermarkTextStyleProperty public_oe static_oe property

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

WatermarkTextStyleRelayProperty public_oe static_oe property

WatermarkTextStyleRelay Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml WatermarkTextStyleRelayProperty
return Windows.UI.Xaml.DependencyProperty