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.
Stellt einen Container für alle Befehle dar, die von der Anwendung definiert werden.
Verbrauch
<Application.Commands>
child elements
</Application.Commands>
Attribute
Es gibt keine Attribute.
Untergeordnete Elemente
| Element | BESCHREIBUNG |
|---|---|
|
Befehl |
Kann ein oder mehrere Male auftreten |
Übergeordnete Elemente
| Element |
|---|
|
Anwendung |
Bemerkungen
Optional.
Kann höchstens einmal für jedes Application-Element auftreten.
Beispiele
Das folgende Beispiel zeigt ein Application.Commands-Element , das ein Manifest von Zwischenablagebefehlen enthält.
<Application.Commands>
<Command Name="cmdHomeTab"
LabelTitle="Home"
Keytip="H" />
<Command Name="cmdClipboardGroup"
Symbol="IDR_CMD_CLIPBOARD"
Id="10000"
Comment="Command definition for clipboard group"
LabelTitle="Clipboard"
Keytip="CB" />
<Command Name="cmdCopy"
Symbol="IDR_CMD_COPY"
LabelTitle="Copy"
LabelDescription="Copy"
Keytip="C"
TooltipTitle="Copy"
TooltipDescription="Click to copy">
<Command.SmallImages>
<Image>res/copyS_16.bmp</Image>
</Command.SmallImages>
<Command.LargeImages>
<Image>res/copyL_32.bmp</Image>
</Command.LargeImages>
</Command>
<Command Name="cmdPaste"
Symbol="IDR_CMD_PASTE" >
<Command.LabelTitle>Paste</Command.LabelTitle>
<Command.LabelDescription>
<String Content="Paste contents of clipboard"
Id="10001"
Symbol="IDR_RES_LABELDESC_PASTE" />
</Command.LabelDescription>
<Command.Keytip>P</Command.Keytip>
<Command.TooltipTitle>
<String Content="Paste contents of clipboard"
Id="10002"
Symbol="IDR_RES_TOOLTIP_PASTE"/>
</Command.TooltipTitle>
<Command.TooltipDescription>
<String Content="Click to paste contents of clipboard"/>
</Command.TooltipDescription>
<Command.SmallImages>
<Image
Id="10010"
MinDPI="96"
Symbol="IDR_RES_SMALL_IMAGE96">
<Image.Source>res/pasteS_96bpp.bmp</Image.Source>
</Image>
<Image Source="res/pasteS_120bpp.bmp"
Id="10011"
MinDPI="120"
Symbol="IDR_RES_SMALL_IMAGE120" />
</Command.SmallImages>
<Command.LargeImages>
<Image>res/pasteL_32.bmp</Image>
</Command.LargeImages>
</Command>
<Command Name="cmdMinimize"
Symbol="IDR_CMD_MINIMIZE"
Id="10001"
LabelTitle="Minimize" />
</Application.Commands>
Anforderungen
| Anforderung | Wert |
|---|---|
| Unterstützte Mindestversion (Client) |
Windows 7 [nur Desktop-Apps] |
| Unterstützte Mindestversion (Server) |
Windows Server 2008 R2 [nur Desktop-Apps] |