Responder Overview > Responder Customizations > User Interface > Commands |
Use the <Commands> tag to determine which commands are visible when the user right clicks in this particular part of the user interface. The example below affects commands on the Alerts Grid (ControlStyle Key="AlertsGrid"). The <Commands> tag indicates a group of commands. Each <Command> tag indicates an individual command.
By looking at the sample XML below, we can see that when the user clicks the Alerts Grid, she will see two Commands: one to Dismiss the alert and one to Snooze.
XML Snippet |
Copy Code
|
---|---|
<ControlStyle Key="AlertsGrid" ResourceAssembly="Miner.Responder.Explorer"> <Commands Key="AlertsGrid_Commands"> <Command Key="AlertDismiss"/> <Command Key="AlertSnooze" /> </Commands> </ControlStyle> |
This XML merely indicates where in the user interface the commands appear. Writing new commands requires custom code.
The image below displays the right-click menu items available on the Alerts tab.