Skip to main content

DXOpenFileDialog.OpenFileDialogMode Property

Gets or sets the mode in which the DXOpenFileDialog functions: selects files or selects folders.

Namespace: DevExpress.Xpf.Dialogs

Assembly: DevExpress.Xpf.Dialogs.v24.2.dll

NuGet Package: DevExpress.Wpf.Dialogs

Declaration

public OpenFileDialogMode OpenFileDialogMode { get; set; }

Property Value

Type Description
OpenFileDialogMode

One of the OpenFileDialogMode enumeration values.

Available values:

Name Description
Files

The DXOpenFileDialog allows selecting files only.

Folders

The DXOpenFileDialog allows selecting folders only.

Remarks

If the OpenFileDialogMode property is set to OpenFileDialogMode.Files, the DXFileDialog.FileName property returns the selected file name (including path).

If the OpenFileDialogMode property is set to OpenFileDialogMode.Folders, the DXFileDialog.FileName property returns the selected folder name (including path).

See Also