понедельник, 13 сентября 2010 г.

WPF Open Directory Dialog




Unfortunately, WPF doesn't have a folder browser dialog. You should use the System.Windows.Forms.FolderBrowserDialog class for this. Don't mind that it's in theSystem.Windows.Forms namespace.


var dialog = new System.Windows.Forms.FolderBrowserDialog();
System.Windows.Forms.DialogResult result = dialog.ShowDialog();

Комментариев нет: