ContextMenuService.GetItems-Methode

Ruft eine Liste von Menüelementen ab.

Namespace:  Microsoft.Windows.Design.Services
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Function GetItems As IEnumerable(Of MenuBase)
public IEnumerable<MenuBase> GetItems()
public:
IEnumerable<MenuBase^>^ GetItems()
member GetItems : unit -> IEnumerable<MenuBase> 
public function GetItems() : IEnumerable<MenuBase>

Rückgabewert

Typ: System.Collections.Generic.IEnumerable<MenuBase>
Eine Enumeration von derzeit zutreffenden Menüelementen.

.NET Framework-Sicherheit

Siehe auch

Referenz

ContextMenuService Klasse

Microsoft.Windows.Design.Services-Namespace

ContextItem

EditingContext

Weitere Ressourcen

Bearbeiten der Kontextarchitektur

WPF-Designer-Erweiterbarkeit