Dieser Artikel wurde noch nicht bewertet - Dieses Thema bewerten.

ContextMenu.PlacementRectangle-Eigenschaft

Gets or sets the PlacementRectangle property of a ContextMenu.

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

[BindableAttribute(true)] 
public Rect PlacementRectangle { get; set; }
/** @property */
public Rect get_PlacementRectangle ()

/** @property */
public void set_PlacementRectangle (Rect value)

public function get PlacementRectangle () : Rect

public function set PlacementRectangle (value : Rect)

<object>
  <object.PlacementRectangle>
    <Rect .../>
  </object.PlacementRectangle>
</object>
<object PlacementRectangle="Rect" .../>

Eigenschaftenwert

The default value is null.

This is an arbitrary rectangle that is used to specify the placement of a ContextMenu.

The following example shows how to use the PlacementRectangle property and specify where the ContextMenu is placed.

<ContextMenu Placement="Bottom" PlacementRectangle="30,50,0,0">

Microsoft .NET Framework 3.0 wird unter Windows Vista, Microsoft Windows XP SP2 und Windows Server 2003 SP1 unterstützt.

.NET Framework

Unterstützt in: 3.0
Fanden Sie dies hilfreich?
(1500 verbleibende Zeichen)
© 2013 Microsoft. Alle Rechte vorbehalten.