ContextMenuThemeProperties Class
Provides attached properties for use in context menu themes.
public static class ContextMenuThemeProperties
- Inheritance:
- object object
Methods
GetCanAdjustOffsetsForShadow(DependencyObject)
Gets the value of the CanAdjustOffsetsForShadow
attached property for the specified object.
public static bool GetCanAdjustOffsetsForShadow(DependencyObject obj)
Parameter | Type | Description |
---|---|---|
obj | DependencyObject | The object from which the property value is read. |
Returns
- bool:
The object's value.
SetCanAdjustOffsetsForShadow(DependencyObject, bool)
Sets the value of the CanAdjustOffsetsForShadow
attached property to the specified object.
public static void SetCanAdjustOffsetsForShadow(DependencyObject obj, bool value)
Parameter | Type | Description |
---|---|---|
obj | DependencyObject | The object to which the attached property is written. |
value | bool | The value to set. |
Fields
CanAdjustOffsetsForShadowProperty
Identifies the CanAdjustOffsetsForShadow
dependency property. This field is read-only.
public static readonly DependencyProperty CanAdjustOffsetsForShadowProperty