In This Article

HintProperties Class

Provides attached properties that provide hint content for controls

public static class HintProperties
Inheritance:
object object

Methods

GetHasContent(DependencyObject)

Gets the value of the HasContent attached property for the specified object.

public static bool GetHasContent(DependencyObject obj)
Parameter Type Description
obj DependencyObject

The object from which the property value is read.

Returns

bool

GetHasHint(DependencyObject)

Gets the value of the HasHint attached property for the specified object.

public static bool GetHasHint(DependencyObject obj)
Parameter Type Description
obj DependencyObject

The object from which the property value is read.

Returns

bool

GetHint(DependencyObject)

Gets the value of the Hint attached property for the specified object.

public static object? GetHint(DependencyObject obj)
Parameter Type Description
obj DependencyObject

The object from which the property value is read.

Returns

object

GetHintTemplate(DependencyObject)

Gets the value of the HintTemplate attached property for the specified object.

public static DataTemplate? GetHintTemplate(DependencyObject obj)
Parameter Type Description
obj DependencyObject

The object from which the property value is read.

Returns

DataTemplate

GetHintTemplateSelector(DependencyObject)

Gets the value of the HintTemplateSelector attached property for the specified object.

public static DataTemplateSelector? GetHintTemplateSelector(DependencyObject obj)
Parameter Type Description
obj DependencyObject

The object from which the property value is read.

Returns

DataTemplateSelector

SetHint(DependencyObject, object?)

Sets the value of the Hint attached property to the specified object.

public static void SetHint(DependencyObject obj, object? value)
Parameter Type Description
obj DependencyObject

The object to which the attached property is written.

value object

The value to set.

SetHintTemplate(DependencyObject, DataTemplate?)

Sets the value of the HintTemplate attached property to the specified object.

public static void SetHintTemplate(DependencyObject obj, DataTemplate? value)
Parameter Type Description
obj DependencyObject

The object to which the attached property is written.

value DataTemplate

The value to set.

SetHintTemplateSelector(DependencyObject, DataTemplateSelector?)

Sets the value of the HintTemplateSelector attached property to the specified object.

public static void SetHintTemplateSelector(DependencyObject obj, DataTemplateSelector? value)
Parameter Type Description
obj DependencyObject

The object to which the attached property is written.

value DataTemplateSelector

The value to set.

Fields

HasContentProperty

Defines the HasContent property.

public static readonly DependencyProperty HasContentProperty

HasHintProperty

Defines the HasHint property.

public static readonly DependencyProperty HasHintProperty

HintProperty

Defines the Hint property.

public static readonly DependencyProperty HintProperty

HintTemplateProperty

Defines the HintTemplate property.

public static readonly DependencyProperty HintTemplateProperty

HintTemplateSelectorProperty

Defines the HintTemplateSelector property.

public static readonly DependencyProperty HintTemplateSelectorProperty

Inherited Members