Version

PlacementMode Enumeration

Describes the placement of where a XamContextMenu control appears on the screen. The target area of the XamContextMenu is the XamContextMenu.PlacementRectangle which is relative to the XamContextMenu.PlacementTarget. If the XamContextMenu.PlacementTarget is not set, the element where the context menu is attached is used as a target.
Syntax
'Declaration
 
Public Enum PlacementMode 
   Inherits System.Enum
public enum PlacementMode : System.Enum 
Members
MemberDescription
AlignedAboveA position of the XamContextMenu control that aligns its lower edge with the upper edge of the target and aligns its left edge with the left edge of the target. If a screen edge obscures the XamContextMenu, the control repositions itself to align with the screen edge.
AlignedBelowA position of the XamContextMenu control where the control aligns its upper edge with the lower edge of the target and aligns its left edge with the left edge of the target. If a screen edge obscures the XamContextMenu, the control repositions itself to align with the screen edge.
AlignedBottomA position of the XamContextMenu control that aligns its lower edge with the lower edge of the target and aligns its left edge with the left edge of the target. If a screen edge obscures the XamContextMenu, the control repositions itself to align with the screen edge.
AlignedLeftA position of the XamContextMenu control that aligns its left edge with the left edge of the target and aligns its upper edge with the upper edge of the target. If a screen edge obscures the XamContextMenu, the control repositions itself to align with the screen edge.
AlignedRightA position of the XamContextMenu control that aligns its right edge with the right edge of the target and aligns its upper edge with the upper edge of the target. If a screen edge obscures the XamContextMenu, the control repositions itself to align with the screen edge.
AlignedTopA position of the XamContextMenu control that aligns its upper edge with the upper edge of the target and aligns its left edge with the left edge of the target. If a screen edge obscures the XamContextMenu, the control repositions itself to align with the screen edge.
AlignedToTheLeftA XamContextMenu control that aligns its right edge with the left edge of the target and aligns its upper edge with the upper edge of the target. If a screen edge obscures the XamContextMenu, the control repositions itself to align with the screen edge.
AlignedToTheRightA position of the XamContextMenu control that aligns its left edge with the right edge of the target and aligns its upper edge with the upper edge of the target. If a screen edge obscures the XamContextMenu, the control repositions itself to align with the screen edge.
CenterA position of the XamContextMenu control where it is centered over the target. If a screen edge obscures the XamContextMenu, the control repositions itself to align with the screen edge.
ManualA position of the XamContextMenu control relative to the upper-left corner of the target and at an offset that is defined by the XamContextMenu.HorizontalOffset and XamContextMenu.VerticalOffset property values. If a screen edge obscures the XamContextMenu, the control repositions itself to align with the screen edge.
MouseClickA position of the XamContextMenu control relative to the mouse position and at an offset that is defined by the XamContextMenu.HorizontalOffset and XamContextMenu.VerticalOffset property values. If a screen edge obscures the XamContextMenu, the control repositions itself to align with the screen edge.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also