C# Class Gu.Wpf.Adorners.Watermark

Show file Open project: JohanLarsson/Gu.Wpf.Adorners

Public Properties

Property Type Description
IsShowingProperty System.Windows.DependencyProperty
TextProperty DependencyProperty
TextStyleProperty DependencyProperty
VisibleWhenProperty DependencyProperty

Public Methods

Method Description
GetIsShowing ( this element ) : bool
SetText ( this element, string value ) : void
SetTextStyle ( this element, Style value ) : void
SetVisibleWhen ( this element, WatermarkVisibleWhen value ) : void

Private Methods

Method Description
GetAdorner ( this element ) : WatermarkAdorner
GetText ( this element ) : string
GetTextStyle ( this element ) : System.Windows.Style
GetVisibleWhen ( this element ) : WatermarkVisibleWhen
OnAdornerChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnGotKeyboardFocus ( object sender, RoutedEventArgs e ) : void
OnIsShowingChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnIsVisibleChanged ( object sender, RoutedEventArgs e ) : void
OnLoaded ( object sender, RoutedEventArgs e ) : void
OnLostKeyboardFocus ( object sender, RoutedEventArgs e ) : void
OnSizeChanged ( object sender, RoutedEventArgs e ) : void
OnTextChanged ( object sender, RoutedEventArgs e ) : void
OnTextStyleChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnUnLoaded ( object sender, RoutedEventArgs e ) : void
OnValidateTextStyle ( object value ) : bool
OnVisibleWhenChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnWatermarkTextChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
SetAdorner ( this element, WatermarkAdorner value ) : void
SetIsShowing ( this element, bool value ) : void
UpdateIsShowing ( TextBox textBox ) : void
Watermark ( ) : System

Method Details

GetIsShowing() public static method

public static GetIsShowing ( this element ) : bool
element this
return bool

SetText() public static method

public static SetText ( this element, string value ) : void
element this
value string
return void

SetTextStyle() public static method

public static SetTextStyle ( this element, Style value ) : void
element this
value Style
return void

SetVisibleWhen() public static method

public static SetVisibleWhen ( this element, WatermarkVisibleWhen value ) : void
element this
value WatermarkVisibleWhen
return void

Property Details

IsShowingProperty public static property

public static DependencyProperty,System.Windows IsShowingProperty
return System.Windows.DependencyProperty

TextProperty public static property

public static DependencyProperty TextProperty
return DependencyProperty

TextStyleProperty public static property

public static DependencyProperty TextStyleProperty
return DependencyProperty

VisibleWhenProperty public static property

public static DependencyProperty VisibleWhenProperty
return DependencyProperty