Skip to main content

DXFolderBrowserDialog.SelectedPath Property

Gets or sets the selected path.

Namespace: DevExpress.Xpf.Dialogs

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


public string SelectedPath { get; set; }

Property Value

Type Description

A String value that specifies the selected path.


If the SelectedPath property is set before showing the dialog box, the folder with this path will be the selected folder, as long as SelectedPath is set to an absolute path that is a subfolder of DXFolderBrowserDialog.RootFolder (or more accurately, points to a subfolder of the shell namespace represented by DXFolderBrowserDialog.RootFolder).

If the DXFolderBrowserDialog returns OK, meaning the user clicked the OK button, the SelectedPath property will return a string containing the path to the selected folder. If DXFolderBrowserDialog returns Cancel, meaning the user canceled out of the dialog box, this property will have the same value that it had prior to displaying the dialog box. If the user selects a folder that does not have a physical path (for example, My Computer), the OK button on the dialog box will be disabled.

See Also