fbpx

XSharp.Tools.WPF: dependency on System.Windows.Forms?

  • Wolfgang Riedmann
  • Wolfgang Riedmann's Avatar Topic Author
  • Offline
More
4 months 10 hours ago #1 by Wolfgang Riedmann
Hello,

currently I'm working on the WPF library, and have encountered a problem: WPF does not provides a dialog to select a folder.
In my own WPF library, I'm using a Windows.Forms dialog.

I have now two possibilities:
  • don't provide a folder selection method
  • add a dependency to System.Windows.Forms

What do you prefer?

Wolfgang

Please Log in or Create an account to join the conversation.

More
4 months 9 hours ago #2 by Juraj Halás
Hi Wolfgang

in my WPF app I use System.Windows.Forms.FolderBrowserDialog{}. Adding to a reference is not a problem.
I vote for option two.

Juraj

Please Log in or Create an account to join the conversation.

  • Wolfgang Riedmann
  • Wolfgang Riedmann's Avatar Topic Author
  • Offline
More
4 months 8 hours ago #3 by Wolfgang Riedmann
Replied by Wolfgang Riedmann on topic XSharp.Tools.WPF: dependency on System.Windows.Forms?
Hi Juraj,

ok, thank you very much!

1:0 for the dependency to System.Windows.Forms.

The alternative would be to write a WPF folder selection dialog....

Wolfgang

Please Log in or Create an account to join the conversation.

More
4 months 8 hours ago #4 by Robert van der Hulst
Replied by Robert van der Hulst on topic XSharp.Tools.WPF: dependency on System.Windows.Forms?
Wolfgang,
github.com/aelij/WPFContrib has such a dialog.
I have no idea about the quality of code

Robert

XSharp Development Team
The Netherlands
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

  • Wolfgang Riedmann
  • Wolfgang Riedmann's Avatar Topic Author
  • Offline
More
4 months 8 hours ago #5 by Wolfgang Riedmann
Replied by Wolfgang Riedmann on topic XSharp.Tools.WPF: dependency on System.Windows.Forms?
Hi Robert,

thank you very much! I have looked at it, and it will take some time to isolate it. Currently this dialog crashes on my system.

Wolfgang

Please Log in or Create an account to join the conversation.

More
3 months 4 weeks ago #6 by Guy DEPREZ

Please Log in or Create an account to join the conversation.

Moderators: Wolfgang Riedmann