HintProperties Class
Provides attached properties that provide hint content for controls
public static class HintProperties
- Inheritance:
- System.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 | System.Windows.DependencyObject | The object from which the property value is read. |
Returns
- System.Boolean:
The object's value.
GetHasHint(DependencyObject)
Gets the value of the HasHint
attached property for the specified object.
public static bool GetHasHint(DependencyObject obj)
Parameter | Type | Description |
---|---|---|
obj | System.Windows.DependencyObject | The object from which the property value is read. |
Returns
- System.Boolean:
The object's value.
GetHint(DependencyObject)
Gets the value of the Hint
attached property for the specified object.
public static object GetHint(DependencyObject obj)
Parameter | Type | Description |
---|---|---|
obj | System.Windows.DependencyObject | The object from which the property value is read. |
Returns
- System.Object:
The object's value.
GetHintTemplate(DependencyObject)
Gets the value of the HintTemplate
attached property for the specified object.
public static DataTemplate GetHintTemplate(DependencyObject obj)
Parameter | Type | Description |
---|---|---|
obj | System.Windows.DependencyObject | The object from which the property value is read. |
Returns
- System.Windows.DataTemplate:
The object's value.
GetHintTemplateSelector(DependencyObject)
Gets the value of the HintTemplateSelector
attached property for the specified object.
public static DataTemplateSelector GetHintTemplateSelector(DependencyObject obj)
Parameter | Type | Description |
---|---|---|
obj | System.Windows.DependencyObject | The object from which the property value is read. |
Returns
- System.Windows.Controls.DataTemplateSelector:
The object's value.
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 | System.Windows.DependencyObject | The object to which the attached property is written. |
value | System.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 | System.Windows.DependencyObject | The object to which the attached property is written. |
value | System.Windows.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 | System.Windows.DependencyObject | The object to which the attached property is written. |
value | System.Windows.Controls.DataTemplateSelector | The value to set. |
Fields
HasContentProperty
Identifies the read-only HasContent
dependency property. This field is read-only.
public static readonly DependencyProperty HasContentProperty
HasHintProperty
Identifies the read-only HasHint
dependency property. This field is read-only.
public static readonly DependencyProperty HasHintProperty
HintProperty
Identifies the Hint
dependency property. This field is read-only.
public static readonly DependencyProperty HintProperty
HintTemplateProperty
Identifies the HintTemplate
dependency property. This field is read-only.
public static readonly DependencyProperty HintTemplateProperty
HintTemplateSelectorProperty
Identifies the HintTemplateSelector
dependency property. This field is read-only.
public static readonly DependencyProperty HintTemplateSelectorProperty
Inherited Members
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()