Xceed Toolkit Plus for WPF v4.6 Documentation
KeepWatermarkOnGotFocus Property


Xceed.Wpf.Toolkit Assembly > Xceed.Wpf.Toolkit Namespace > WatermarkTextBox Class : KeepWatermarkOnGotFocus Property
Gets or sets a value indicating if the watermark will be displayed when the focus is set on the WatermarkTextBox when the text is empty.
Syntax
'Declaration
 
Public Property KeepWatermarkOnGotFocus As Boolean
'Usage
 
Dim instance As WatermarkTextBox
Dim value As Boolean
 
instance.KeepWatermarkOnGotFocus = value
 
value = instance.KeepWatermarkOnGotFocus
public bool KeepWatermarkOnGotFocus {get; set;}

Property Value

true if the watermark will be displayed when the focus is set on the WatermarkTextBox when the text is empty; false, otherwise. By default, false.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

WatermarkTextBox Class
WatermarkTextBox Members