TextBoxHelper.

SetAutoWatermark(DependencyObject, bool) Method

Summary

Indicates if the watermark is automatically retrieved by using the DisplayAttribute of the bound property.
Namespace
MahApps.Metro.Controls
Containing Type
TextBoxHelper

Syntax

public static void SetAutoWatermark(DependencyObject element, bool value)

Remarks

This attached property uses reflection; thus it might reduce the performance of the application. The auto-watermak does work for the following controls: In the following case no custom watermark is shown
  • There is no binding
  • Binding path errors
  • Binding to a element of a collection without using a property of that element Binding Path=Collection[0] use: Binding Path=Collection[0].SubProperty
  • The bound property does not have a

Parameters

Name Type Description
element DependencyObject
value bool

Return Value

Type Description
void