How to use a FolderBrowserDialog from a WPF application

前端 未结 10 2029
青春惊慌失措
青春惊慌失措 2020-12-02 10:29

I\'m trying to use the FolderBrowserDialog from my WPF application - nothing fancy. I don\'t much care that it has the Windows Forms look to it.

However, when I call

10条回答
  •  醉梦人生
    2020-12-02 10:55

    Why not using the built in WindowInteropHelper class (see namespace System.Windows.Interop). This class already impelements the IWin32Window ;)

    So you can forget about the "OldWindow class" ... the usage stays the same

提交回复
热议问题