Skip Navigation LinksActipro Software / Products / .NET Controls / WPF / Ribbon / Advanced Popups

Feature Tour:

Advanced Popups

Several built-in ribbon controls have popups. Popups in Actipro Ribbon aren't restricted to having just menu items in them. While most of the time you will only place menu items in them, you have the option of displaying any sort of content within a popup.

A popup with two Menu controls in a StackPanel, one with large items and one with small items

Control Popups

Popup Content Layout Options

The most common content for a popup is a Menu control, which renders its items as menu items.

However there are probably times when you wish to create more complex layouts of controls on a popup. In these scenarios, use a Panel as the popup content.

For instance, use a native WPF StackPanel to stack a popup header banner image or a popup gallery on top of a Menu of items. This sort of layout is very often used in popups that contain a popup gallery because you can place menu items above and below the popup gallery as needed.

Or use a native WPF StackPanel with horizontal orientation to create a popup with two Menu controls, one on the left of the other with a Separator in between (two columns of menu items).

By using techniques like this (also illustrated throughout the sample project), you can create complex layouts of popup content.

Popup Location

Ribbon control popups support all the standard WPF popup properties used for location determination.

Resizable Popups

All popups can be made resizable via techniques described in the documentation.

Generate Popup Content Dynamically

Actipro Ribbon makes it easy to dynamically create/change a popup's content before the popup is displayed. This feature is most commonly used to customize menu items for a popup that contains a menu.

Context Menu

Ribbon includes a specialized class that inherits ContextMenu, supports the use of any ribbon control in it, and supports the layout functionality described above. This means that you may use your ribbon controls even on context menus for other non-ribbon controls and can provide a consistent presentation throughout your application.

A sample ribbon context menu used for an edit control