RepositoryItemPopupBase.PopupFormMinSize Property

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

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

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

Property Value

Type Description
Size

A 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).

See Also