Applies to: desktop apps only
The IUIContextualUI interface is implemented by the Ribbon framework and provides the core functionality for the Context Popup View.
Members
The IUIContextualUI interface inherits from the IUnknown interface. IUIContextualUI also has these types of members:
Methods
The IUIContextualUI interface has these methods.
| Method | Description |
|---|---|
| ShowAtLocation |
Displays a ContextPopup. |
Remarks
The Context Popup is composed of two components: the ContextMenu and MiniToolbar elements.
Note The Context Popup acts solely as a logical container for the ContextMenu and MiniToolbar. It does not support scrolling, moving, or resizing.
The Context Popup is typically displayed by right-clicking the mouse (or through the keyboard shortcut SHIFT+F10) on an object of interest. The steps required to display the Context Popup are defined by the application.
The ContextMenu is a list of menu items that is contextual and based on the control clicked or the control with focus (when using the keyboard).
The MiniToolbar is a floating toolbar that incorporates various Commands, galleries, and complex controls such as the Font Control and the Combo Box.
The following screen shot shows the Context Popup with a ContextMenu and MiniToolbar.

Requirements
|
Minimum supported client | Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista |
|---|---|
|
Minimum supported server | Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 |
|
Header |
|
|
IDL |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 2/15/2012
// Windows Ribbon ContextualUI interface
[ComImport]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("EEA11F37-7C46-437c-8E55-B52122B29293")]
public interface IUIContextualUI
{
// Sets the desired anchor point where ContextualUI should be displayed.
// Typically this is the mouse location at the time of right click.
// x and y are in virtual screen coordinates.
[PreserveSig]
HRESULT ShowAtLocation(Int32 x, Int32 y);
}