Export (0) Print
Expand All

ContextMenuService.HorizontalOffset Attached Property

Gets or sets a value that indicates where along the x-direction to place the ContextMenu with respect to the parent control.

Namespace: System.Windows.Controls
Assembly: PresentationFramework (in PresentationFramework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

See ContextMenuService.GetHorizontalOffset, ContextMenuService.SetHorizontalOffset
See ContextMenuService.GetHorizontalOffset, ContextMenuService.SetHorizontalOffset
See ContextMenuService.GetHorizontalOffset, ContextMenuService.SetHorizontalOffset
<object HorizontalOffset="double"/>
  Double  A string representation of a Double value. This is interpreted as a device-independent unit (1/96th inch) measurement. Strings need not explicitly include decimal points. For instance a value of 1 is acceptable. 

Property Value

Double that specifies the horizontal placement of the ContextMenu.

Identifier Field

HorizontalOffsetProperty, registered as Attached

Metadata Flags

None

The following example shows how to use the HorizontalOffset property to place a ContextMenu. This example places the menu outside its parent.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Community Additions

ADD
Show:
© 2015 Microsoft