Skip to main content
A newer version of this page is available. .
Bar

PopupControlContainer Class

A control container that supports the popup functionality.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v21.2.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public class PopupControlContainer :
    BarPopupExpandable

Remarks

A PopupControlContainer object can contain other controls, and it can be displayed as a dropdown window. For example, you can associate a PopupControlContainer object with a BarSplitButtonItem object. Another use case is to replace a context menu with a PopupControlContainer object. To specify a context menu (or a popup control that will be used as a context menu) for a UIElement, use the BarManager.DXContextMenu property.

The PopupControlContainer‘s content is specified by the PopupControlContainer.Content property.

If you are observing an exception at design time when you initialize a property with a PopupControlContainer object, try initializing this property with the PopupControlContainerInfo object instead. The PopupControlContainerInfo creates a corresponding PopupControlContainer internally and has the same settings as the PopupControlContainer.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PopupControlContainer class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

See Also