Watermark Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

System.Object
  Microsoft.TeamFoundation.Controls.WPF.Watermark

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

Syntax

'Declaration
Public NotInheritable Class Watermark
public static class Watermark
public ref class Watermark abstract sealed
[<AbstractClass>]
[<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

Top

Methods

  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

Top

Fields

  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

Top

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

Reference

Microsoft.TeamFoundation.Controls.WPF Namespace