In This Article

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.

[AttachedPropertyBrowsableForType(typeof(ContextMenu))]
public static bool GetCanAdjustOffsetsForShadow(DependencyObject obj)
Parameter Type Description
obj DependencyObject

The object from which the property value is read.

Returns

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 DependencyObject

The object to which the attached property is written.

value Boolean

The value to set.

Fields

CanAdjustOffsetsForShadowProperty

Identifies the CanAdjustOffsetsForShadow dependency property. This field is read-only.

public static readonly DependencyProperty CanAdjustOffsetsForShadowProperty

Inherited Members