Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Die folgenden Ausführungen gelten für v2.
Initialisiert eine neue Instanz der ContextMenuItem-Klasse.
Namespace: Microsoft.WebMatrix.Extensibility
Assembly: Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)
Syntax
'Declaration
Public Sub New ( _
label As String, _
icon As ImageSource, _
command As ICommand, _
commandParameter As Object _
)
'Usage
Dim label As String
Dim icon As ImageSource
Dim command As ICommand
Dim commandParameter As Object
Dim instance As New ContextMenuItem(label, icon, _
command, commandParameter)
public ContextMenuItem(
string label,
ImageSource icon,
ICommand command,
Object commandParameter
)
public:
ContextMenuItem(
String^ label,
ImageSource^ icon,
ICommand^ command,
Object^ commandParameter
)
new :
label:string *
icon:ImageSource *
command:ICommand *
commandParameter:Object -> ContextMenuItem
public function ContextMenuItem(
label : String,
icon : ImageSource,
command : ICommand,
commandParameter : Object
)
Parameter
label
Typ: System.StringDie Beschriftung für das Element.
icon
Typ: System.Windows.Media.ImageSourceDas Bild (16 x 16) für das Element.
command
Typ: System.Windows.Input.ICommandDer Befehl, der aufgerufen werden soll, wenn das Element ausgewählt wird.
commandParameter
Typ: System.ObjectDer Parameter für den Befehl.