Examples

<ContextPopup><!--
The MiniToolbars and Context Menus are the basic ingredients for
the contextual UI popup.
Mix-and-match and associate each combination with a ContextMap Command
invoked in code.
--><ContextPopup.MiniToolbars><MiniToolbarName="MiniToolbar1"><MenuGroupClass="MajorItems"><ButtonCommandName="cmdCut"/><ButtonCommandName="cmdCopy"/><ButtonCommandName="cmdPaste"/></MenuGroup><MenuGroup><ToggleButtonCommandName="cmdToggleButton"/><DropDownButtonCommandName="cmdButtons"><MenuGroup><ButtonCommandName="cmdButton1"/><ButtonCommandName="cmdButton2"/><ButtonCommandName="cmdButton3"/></MenuGroup></DropDownButton></MenuGroup></MiniToolbar><MiniToolbarName="MiniToolbar2"><MenuGroup><ButtonCommandName="cmdButton1"/><ButtonCommandName="cmdButton2"/><ButtonCommandName="cmdButton3"/></MenuGroup></MiniToolbar></ContextPopup.MiniToolbars><ContextPopup.ContextMenus><ContextMenuName="ContextMenu1"><MenuGroup><ButtonCommandName="cmdCut"/><ButtonCommandName="cmdCopy"/><ButtonCommandName="cmdPaste"/></MenuGroup></ContextMenu><ContextMenuName="ContextMenu2"><MenuGroup><ToggleButtonCommandName="cmdToggleButton"/></MenuGroup><MenuGroup><ButtonCommandName="cmdButton1"/><ButtonCommandName="cmdButton2"/><ButtonCommandName="cmdButton3"/></MenuGroup></ContextMenu><ContextMenuName="ContextMenu4"><MenuGroup><ButtonCommandName="cmdCut"/><ButtonCommandName="cmdCopy"/><ButtonCommandName="cmdPaste"/></MenuGroup><MenuGroup><ToggleButtonCommandName="cmdToggleButton"/></MenuGroup><MenuGroup><ButtonCommandName="cmdButton1"/><ButtonCommandName="cmdButton2"/><ButtonCommandName="cmdButton3"/></MenuGroup></ContextMenu></ContextPopup.ContextMenus><ContextPopup.ContextMaps><ContextMapCommandName="cmdContextMap1"ContextMenu="ContextMenu1"/><ContextMapCommandName="cmdContextMap2"ContextMenu="ContextMenu2"MiniToolbar="MiniToolbar1"/><ContextMapCommandName="cmdContextMap3"MiniToolbar="MiniToolbar2"/><ContextMapCommandName="cmdContextMap4"ContextMenu="ContextMenu4"/></ContextPopup.ContextMaps></ContextPopup>