Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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