Export (0) Print
Expand All

ContextMenuService.VerticalOffset Attached Property

Gets or sets a value that indicates where along the y-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.GetVerticalOffset, ContextMenuService.SetVerticalOffset
See ContextMenuService.GetVerticalOffset, ContextMenuService.SetVerticalOffset
See ContextMenuService.GetVerticalOffset, ContextMenuService.SetVerticalOffset
<object VerticalOffset="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 vertical placement of the ContextMenu.

Identifier Field

VerticalOffsetProperty, registered as Attached

Metadata Flags

None

The following example shows how to use the VerticalOffset property to place a context menu. 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:
© 2014 Microsoft