Back to Devexpress

RepositoryItemPopupContainerEdit.PopupSizeable Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitempopupcontaineredit-3d11f51a.md

latest4.6 KB
Original Source

RepositoryItemPopupContainerEdit.PopupSizeable Property

Gets or sets a value indicating whether end-users can resize the popup window.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
[DXCategory("Behavior")]
public virtual bool PopupSizeable { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(True)>
Public Overridable Property PopupSizeable As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true to allow popup window resizing; otherwise, false.

|

Remarks

The PopupSizeable property controls whether the end-user can resize the dropdown window by dragging its bottom right corner. If the property is set to false , resizing is not allowed and the dropdown window is always the same size. Initially, the popup window size is specified by the dimensions of the PopupContainerControl control assigned to the RepositoryItemPopupContainerEdit.PopupControl property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the PopupSizeable 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#L99

csharp
item.ShowPopupCloseButton = item.ShowPopupShadow = false;
item.PopupSizeable = false;
item.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor;

winforms-popup-container-edit-with-default-ok-button/CS/PopupContainerFormOkButton.cs#L40

csharp
this.fCloseButtonStyle = BlobCloseButtonStyle.None;
this.AllowSizing = Properties.PopupSizeable;
if (!AllowSizing && !fShowOkButton && fCloseButtonStyle == BlobCloseButtonStyle.None)

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

vb
item.ShowPopupCloseButton = item.ShowPopupShadow
item.PopupSizeable = False
item.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor

winforms-popup-container-edit-with-default-ok-button/VB/PopupContainerFormOkButton.vb#L36

vb
AllowSizing = Properties.PopupSizeable
If Not AllowSizing AndAlso Not fShowOkButton AndAlso fCloseButtonStyle = BlobCloseButtonStyle.None Then ViewInfo.ShowSizeBar = False

See Also

PopupControl

PopupWidthMode

RepositoryItemPopupContainerEdit Class

RepositoryItemPopupContainerEdit Members

DevExpress.XtraEditors.Repository Namespace