How to use a FolderBrowserDialog from a WPF application

前端 未结 10 2102
青春惊慌失措
青春惊慌失措 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:59

    You should be able to get an IWin32Window by by using PresentationSource.FromVisual and casting the result to HwndSource which implements IWin32Window.

    Also in the comments here:

提交回复
热议问题