Skip to main content

DXFolderBrowserDialog.SelectedPath Property

Gets or sets the selected path.

Namespace: DevExpress.Xpf.Dialogs

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

NuGet Package: DevExpress.Wpf.Dialogs

Declaration

public string SelectedPath { get; set; }

Property Value

Type Description
String

A String value that specifies the selected path.

Remarks

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