Class WatermarkAdorner
Adorner that draws watermark/hint/cue text over the adorned control (System.Windows.Controls.TextBox etc).
public class WatermarkAdorner : Adorner, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
Namespace: Au.More
Assembly: Au.dll
Inheritance
object
WatermarkAdorner
Inherited Members
Constructors
| Name | Description |
|---|---|
| WatermarkAdorner(Control, string) | Initializes and adds this adorner to the System.Windows.Documents.AdornerLayer found by System.Windows.Documents.AdornerLayer.GetAdornerLayer. |
Properties
| Name | Description |
|---|---|
| Text | Gets or sets watermark text. |
Methods
| Name | Description |
|---|---|
| OnRender(DrawingContext) | |
| SetAdornerVisibility() | Sets events to show/hide the adorner depending on control text. The control must be System.Windows.Controls.TextBox, System.Windows.Controls.PasswordBox or editable System.Windows.Controls.ComboBox. |