Back to Devexpress

PropertyGridControl.ShowPropertyMenu(String) Method

wpf-devexpress-dot-xpf-dot-propertygrid-dot-propertygridcontrol-dot-showpropertymenu-x28-system-dot-string-x29.md

latest2.4 KB
Original Source

PropertyGridControl.ShowPropertyMenu(String) Method

Invokes the Property Menu for the property definition with the specified path.

Namespace : DevExpress.Xpf.PropertyGrid

Assembly : DevExpress.Xpf.PropertyGrid.v25.2.dll

NuGet Package : DevExpress.Wpf.PropertyGrid

Declaration

csharp
public void ShowPropertyMenu(
    string propertyPath
)
vb
Public Sub ShowPropertyMenu(
    propertyPath As String
)

Parameters

NameTypeDescription
propertyPathString

The property definition’s path.

|

Remarks

The Property Menu allows users to invoke property-specific commands. This menu can be customized. For example, you can remove existing menu items and add new items.

The PropertyGridControl invokes the Property Menu in the following cases:

  1. A user clicks the property’s Menu Button.
  2. A user right-clicks the property (the PropertyGridControl.ShowMenu property should be set to OnRightClick or Always).
  3. You call the ShowPropertyMenu(String) method.

Refer to the following help topic for more information: Grid Menus.

See Also

Property Menu

MenuOpening

ShowNewItemMenu(String)

HideMenu()

PropertyGridControl Class

PropertyGridControl Members

DevExpress.Xpf.PropertyGrid Namespace