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

DXFolderBrowserDialog.ShowNewFolderButton Property

Gets or sets whether this DXFolderBrowserDialog should display the “Make New Folder” button.

Namespace: DevExpress.Xpf.Dialogs

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

NuGet Package: DevExpress.Wpf.Dialogs

#Declaration

public bool ShowNewFolderButton { get; set; }

#Property Value

Type Description
Boolean

true, if the “Make New Folder” button is visible; otherwise, false.

#Remarks

Set the ShowNewFolderButton property to disable displaying the “Make New Folder” button.

private void button_Click(object sender, RoutedEventArgs e) {
    var fileDialog = new DXFolderBrowserDialog();
    fileDialog.Description = "Select the folder you want to open:";
    fileDialog.ShowNewFolderButton = false;
    fileDialog.ShowDialog();
}

DXFolderBrowserDialog.png

See Also