Back to Devexpress

RepositoryItemPopupBase.PopupFormSize Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitempopupbase-16ef499e.md

latest3.6 KB
Original Source

RepositoryItemPopupBase.PopupFormSize Property

Sets the popup window’s initial size.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Behavior")]
public virtual Size PopupFormSize { get; set; }
vb
<DXCategory("Behavior")>
Public Overridable Property PopupFormSize As Size

Property Value

TypeDescription
Size

A Size value.

|

Remarks

If an end-user resizes the popup window, the window keeps the new size. The PopupFormSize property, however, retains the original value.

csharp
private void Form1_Load(object sender, EventArgs e) {
    memoExEdit1.Properties.PopupFormSize = new Size(600, 200);
}
vb
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

csharp
DetailGrid.ForceInitialize();
    edit.Properties.PopupFormSize = CalcDetailViewSize();
}

winforms-grid-use-layoutview-as-master-view/VB/WindowsApplication3/MasterDetailHelper.vb#L138

vb
DetailGrid.ForceInitialize()
    edit.Properties.PopupFormSize = CalcDetailViewSize()
End Sub

See Also

PopupFormMinSize

RepositoryItemPopupContainerEdit.PopupWidthMode

RepositoryItemLookUpEditBase.PopupWidthMode

RepositoryItemBlobBaseEdit.PopupWidthMode

RepositoryItemPopupBase Class

RepositoryItemPopupBase Members

DevExpress.XtraEditors.Repository Namespace