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

PopupContainerEdit() Constructor

Creates an instance of the PopupContainerEdit class.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

public PopupContainerEdit()

Remarks

The constructor allows you to create a PopupContainerEdit editor at runtime. This initializes all properties to their default values.

The editor is created with a single ButtonPredefines.Combo button type. Clicking the button invokes the popup window and displays its associated popup control. Use the RepositoryItemPopupContainerEdit.PopupControl property to specify the control to display in the popup.

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);

The following code snippets (auto-collected from DevExpress Examples) contain references to the PopupContainerEdit() constructor.

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.

See Also