Back to Devexpress

PropertyGridControl.ShowNewItemMenu(String) Method

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

latest2.4 KB
Original Source

PropertyGridControl.ShowNewItemMenu(String) Method

Invokes the New Item Menu for the collection 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 ShowNewItemMenu(
    string propertyPath
)
vb
Public Sub ShowNewItemMenu(
    propertyPath As String
)

Parameters

NameTypeDescription
propertyPathString

The collection definition’s path.

|

Remarks

The collection‘s New Item Menu allows users to add items to the collection. The New Item Initializer specifies item types displayed in this menu.

The PropertyGridControl invokes the New Item Menu in the following cases:

  1. A user clicks the collection’s Add Item button.
  2. You call the ShowNewItemMenu(String) method.

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

See Also

Grid Menus

MenuOpening

ShowPropertyMenu(String)

HideMenu()

PropertyGridControl Class

PropertyGridControl Members

DevExpress.Xpf.PropertyGrid Namespace