RepositoryItemPopupContainerEdit.CloseOnOuterMouseClick Property
Gets or sets whether the current dropdown control must be closed when: 1) clicking on a control within another form; 2) clicking outside its bounds, and at the same time, within another non-DevExpress popup window that belongs to the current dropdown control.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v19.1.dll
Declaration
[DXCategory("Behavior")]
[DefaultValue(true)]
public virtual bool CloseOnOuterMouseClick { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | **true** | true if the dropdown control is closed on a click outside its bounds; otherwise, false. |
Remarks
If the property is set to false, the PopupContainerEdit’s dropdown is not closed when:
- clicking on a control within another form;
- selecting a value in a non-DevExpress popup control that belongs to the PopupContainerEdit’s dropdown.
When the PopupContainerEdit’s dropdown contains a DevExpress popup control, selecting a value in the DevExpress popup control doesn’t close the PopupContainerEdit’s dropdown, regardless of the CloseOnOuterMouseClick setting.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CloseOnOuterMouseClick 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.