RepositoryItemPopupContainerEdit.PopupControl Property

Gets or sets the control to display in the popup window.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v21.2.dll


public virtual PopupContainerControl PopupControl { get; set; }

Property Value

Type Default Description


A PopupContainerControl control to display in the popup window.


To specify the content of a PopupContainerEdit editor’s popup window, first create a PopupContainerControl control. This control represents the panel which serves as the container for visual controls. Place the desired controls onto the container and assign it to the PopupControl property. The panel’s content will be displayed when the editor’s popup window is invoked.

Note: the size of the assigned control specifies the popup window’s initial size. You can stop users from changing the window’s size by using the RepositoryItemPopupContainerEdit.PopupSizeable property.


The following example creates a PopupContainerControl with a RichTextBox inside, and assigns this control to a PopupContainerEdit editor.

  RichTextBox rtb = new RichTextBox();
  rtb.Dock = DockStyle.Fill;
  PopupContainerControl popupControl = new PopupContainerControl();

  PopupContainerEdit editor = new PopupContainerEdit();
  editor.Properties.PopupControl = popupControl;
See Also