RepositoryItemPopupContainerEdit.PopupControl Property

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

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DefaultValue(null)]
[DXCategory("Data")]
public virtual PopupContainerControl PopupControl { get; set; }
<DefaultValue(Nothing)>
<DXCategory("Data")>
Public Overridable Property PopupControl As PopupContainerControl

Property Value

Type Default Description
PopupContainerControl

null

A PopupContainerControl control to display in the popup window.

Remarks

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.

Examples

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