Watermark Class

A helper class that contains attached properties to support watermarks for TextBox and ComboBox controls: HintText: an attached property that shows what is the hint text for the control ImageSource: an attached property that points to the image source for the image to show inside the control or Image: an attached property that points to the image to show inside the control

Inheritance Hierarchy


Namespace:  Microsoft.TeamFoundation.Controls.WPF
Assembly:  Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)


Public NotInheritable Class Watermark
public static class Watermark
public ref class Watermark abstract sealed
type Watermark =  class end
public final class Watermark

The Watermark type exposes the following members.

Attached Properties

  Name Description
Public attached property HasActualText
Public attached property HintText
Public attached property Image
Public attached property ShowImageOnRight
Public attached property ShowToolTip
Public attached property WatermarkState



  Name Description
Public methodStatic member GetHasActualText
Public methodStatic member GetHintText
Public methodStatic member GetImage
Public methodStatic member GetShowImageOnRight
Public methodStatic member GetShowToolTip
Public methodStatic member GetWatermarkState
Public methodStatic member RebuildWatermarkState
Public methodStatic member SetHasActualText
Public methodStatic member SetHintText
Public methodStatic member SetImage
Public methodStatic member SetShowImageOnRight
Public methodStatic member SetShowToolTip
Public methodStatic member SetWatermarkState



  Name Description
Public fieldStatic member HasActualTextProperty
Public fieldStatic member HintTextProperty
Public fieldStatic member ImageProperty
Public fieldStatic member ShowImageOnRightProperty
Public fieldStatic member ShowToolTipProperty
Public fieldStatic member WatermarkStateProperty


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also


Microsoft.TeamFoundation.Controls.WPF Namespace