RepositoryItemPopupContainerEdit.PopupWidthMode Property
Gets or sets whether the initial popup width matches the editor or content width.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
[DefaultValue(PopupWidthMode.Default)]
[DXCategory("Behavior")]
public PopupWidthMode PopupWidthMode { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
DevExpress. |
Default | A DevExpress. |
#Remarks
The initial popup width matches the editor width by default (when PopupWidthMode is set to Default). By setting the WindowsFormsSettings.DefaultSettingsCompatibilityMode global setting to v17_1 or earlier, you can override the default behavior for your version, and enable the popup width to match the content width by default.
Note
The popup width matches the content width by default, regardless of the version of DevExpress components is installed if:
- the Repository
Item option is disabled,Popup Container Edit. Popup Sizeable - the Repository
Item setting is set to any custom value.Popup Base. Popup Form Size
The PopupWidthMode property allows you to override the default behavior for the current editor. Set this property to UseEditorWidth or ContentWidth to enable the initial popup width to match the editor or content width, respectively. See the figures below.
Note
If the editor width is less than the minimum popup width specified with the Repository