Back to Devexpress

DXFolderBrowserDialog.ShowNewFolderButton Property

wpf-devexpress-dot-xpf-dot-dialogs-dot-dxfolderbrowserdialog-59042fca.md

latest2.0 KB
Original Source

DXFolderBrowserDialog.ShowNewFolderButton Property

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

Namespace : DevExpress.Xpf.Dialogs

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

NuGet Package : DevExpress.Wpf.Dialogs

Declaration

csharp
public bool ShowNewFolderButton { get; set; }
vb
Public Property ShowNewFolderButton As Boolean

Property Value

TypeDescription
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.

csharp
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();
}
vb
Private Sub button_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
    Dim fileDialog = New DXFolderBrowserDialog()
    fileDialog.Description = "Select the folder you want to open:"
    fileDialog.ShowNewFolderButton = False
    fileDialog.ShowDialog()
End Sub

See Also

DXFolderBrowserDialog Class

DXFolderBrowserDialog Members

DevExpress.Xpf.Dialogs Namespace