PopupContainerControl() Constructor
Creates an instance of the PopupContainerControl class.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v19.2.dll
Declaration
Remarks
Use the constructor to create a popup control at runtime. A popup control is displayed in the popup window of a PopupContainerEdit control. To assign a popup control to an editor, see the RepositoryItemPopupContainerEdit.PopupControl property.
Example
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();
popupControl.Controls.Add(rtb);
PopupContainerEdit editor = new PopupContainerEdit();
editor.Properties.PopupControl = popupControl;
Controls.Add(editor);
See Also