A newer version of this page is available. Switch to the current version.

BarSplitButtonItem.PopupControl Property

Gets or sets a drop-down control for the BarSplitButtonItem.

Namespace: DevExpress.Xpf.Bars

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


public IPopupControl PopupControl { get; set; }

Property Value

Type Description

An IPopupControl object that represents a control displayed in the drop-down window.


You can set the PopupControl property to any of these objects:


This example shows how to create a BarSplitButtonItem, which represents a button with the drop-down functionality. Clicking the button’s Down Arrow displays a popup window. To add a custom content into the popup, use the PopupControlContainer as the PopupControl. To add other bar items, use the PopupMenu.

The following image shows the result:


private void btnFontColor_ItemClick(object sender, DevExpress.Xpf.Bars.ItemClickEventArgs e) {
    PopupControlContainer pcc = (e.Item as DevExpress.Xpf.Bars.BarSplitButtonItem).PopupControl as PopupControlContainer;
    Color color = ((pcc.Content as UserControl).Content as ColorChooser).Color;
    MessageBox.Show("Color is applied: " + color.ToString());
See Also