ContextMenuThemeProperties Class
Provides attached properties for use in context menu themes.
public static class ContextMenuThemeProperties
- Inheritance:
- System.Object Object
Methods
GetCanAdjustOffsetsForShadow(DependencyObject)
Gets the value of the CanAdjustOffsetsForShadow attached property for the specified object.
[AttachedPropertyBrowsableForType(typeof(ContextMenu))]
public static bool GetCanAdjustOffsetsForShadow(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.
SetCanAdjustOffsetsForShadow(DependencyObject, Boolean)
Sets the value of the CanAdjustOffsetsForShadow attached property to the specified object.
public static void SetCanAdjustOffsetsForShadow(DependencyObject obj, bool value)
| Parameter | Type | Description |
|---|---|---|
| obj | System.Windows.DependencyObject | The object to which the attached property is written. |
| value | System.Boolean | The value to set. |
Fields
CanAdjustOffsetsForShadowProperty
Identifies the CanAdjustOffsetsForShadow dependency property. This field is read-only.
public static readonly DependencyProperty CanAdjustOffsetsForShadowProperty
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()