windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitempopupbase-16ef499e.md
Sets the popup window’s initial size.
Namespace : DevExpress.XtraEditors.Repository
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DXCategory("Behavior")]
public virtual Size PopupFormSize { get; set; }
<DXCategory("Behavior")>
Public Overridable Property PopupFormSize As Size
| Type | Description |
|---|---|
| Size |
A Size value.
|
If an end-user resizes the popup window, the window keeps the new size. The PopupFormSize property, however, retains the original value.
private void Form1_Load(object sender, EventArgs e) {
memoExEdit1.Properties.PopupFormSize = new Size(600, 200);
}
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
MemoExEdit1.Properties.PopupFormSize = New Size(600, 200)
End Sub
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PopupFormSize property.
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.
winforms-grid-use-layoutview-as-master-view/CS/WindowsApplication3/MasterDetailHelper.cs#L127
DetailGrid.ForceInitialize();
edit.Properties.PopupFormSize = CalcDetailViewSize();
}
winforms-grid-use-layoutview-as-master-view/VB/WindowsApplication3/MasterDetailHelper.vb#L138
DetailGrid.ForceInitialize()
edit.Properties.PopupFormSize = CalcDetailViewSize()
End Sub
See Also
RepositoryItemPopupContainerEdit.PopupWidthMode
RepositoryItemLookUpEditBase.PopupWidthMode
RepositoryItemBlobBaseEdit.PopupWidthMode