Back to Devexpress

RepositoryItemPopupBase.PopupFormMinSize Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitempopupbase-b2b4d98b.md

latest5.0 KB
Original Source

RepositoryItemPopupBase.PopupFormMinSize Property

Gets or sets the minimum size for the associated dropdown window.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDescription
Size

A System.Drawing.Size structure that specifies the dropdown window’s minimum size.

|

Remarks

The PopupFormMinSize property specifies the minimum size of the control’s dropdown window (the client region and borders). For a LookUpEdit control, this setting does not include the vertical scrollbar’s width (if it is visible).

For a PopupContainerEdit control, the associated dropdown window is a PopupContainerControl class object. The PopupContainerControl provides the MinimumSize property that specifies the minimum size of the dropdown window’s client region (without borders). By default, the MinimumSize property is ignored and the editor’s PopupFormMinSize is used instead. To use the MinimumSize property, set the RepositoryItemPopupContainerEdit.UsePopupControlMinSize property to true.

By default, the PopupFormMinSize property is set to (0, 0). In this instance, a predefined default minimum size is applied, which is different for different editor types.

For a LookUpEdit control, the (0, 0) value assigned to the PopupFormMinSize property is equivalent to the (200, 100) constraint. Note that setting the popup width (RepositoryItemLookUpEdit.PopupWidth) for a LookUpEdit control to a value less than the edit box width is not supported. It is also not possible to set the popup width to a value less than the dropdown’s minimum width.

The PopupFormMinSize property cannot be set to a value less than (10, 10).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PopupFormMinSize 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-display-edit-rtf-data/CS/Form1.cs#L50

csharp
gridColumn1.Width = 20;
    riPopup.PopupFormMinSize = new Size(400, 400);
}

winforms-grid-display-edit-rtf-data/VB/Form1.vb#L45

vb
gridColumn1.Width = 20
    riPopup.PopupFormMinSize = New Size(400, 400)
End Sub

See Also

UsePopupControlMinSize

PopupFormSize

PopupWidth

RepositoryItemPopupContainerEdit.PopupWidthMode

RepositoryItemLookUpEditBase.PopupWidthMode

RepositoryItemBlobBaseEdit.PopupWidthMode

RepositoryItemPopupBase Class

RepositoryItemPopupBase Members

DevExpress.XtraEditors.Repository Namespace