Back to Devexpress

DXOpenFileDialog.OpenFileDialogMode Property

wpf-devexpress-dot-xpf-dot-dialogs-dot-dxopenfiledialog-1b15c0f9.md

latest2.0 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Dialogs

Declaration

csharp
public OpenFileDialogMode OpenFileDialogMode { get; set; }
vb
Public Property OpenFileDialogMode As OpenFileDialogMode

Property Value

TypeDescription
OpenFileDialogMode

One of the OpenFileDialogMode enumeration values.

|

Available values:

NameDescription
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

DXOpenFileDialog Class

DXOpenFileDialog Members

DevExpress.Xpf.Dialogs Namespace