fbpx
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

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

XSharp.Tools.WPF: dependency on System.Windows.Forms? 21 Sep 2018 15:18 #6320

  • wriedmann's Avatar

  • wriedmann

  • Topic Author


  • Posts: 2232
  • 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
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it

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

    XSharp.Tools.WPF: dependency on System.Windows.Forms? 21 Sep 2018 16:07 #6321

  • hsc's Avatar

  • hsc


  • Posts: 126
  • 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.

    XSharp.Tools.WPF: dependency on System.Windows.Forms? 21 Sep 2018 16:49 #6324

  • wriedmann's Avatar

  • wriedmann

  • Topic Author


  • Posts: 2232
  • 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
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it

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

    XSharp.Tools.WPF: dependency on System.Windows.Forms? 21 Sep 2018 17:00 #6325

  • robert's Avatar

  • robert


  • Posts: 1678
  • Wolfgang,
    github.com/aelij/WPFContrib has such a dialog.
    I have no idea about the quality of code

    Robert
    XSharp Development Team
    The Netherlands

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

    XSharp.Tools.WPF: dependency on System.Windows.Forms? 21 Sep 2018 17:37 #6326

  • wriedmann's Avatar

  • wriedmann

  • Topic Author


  • Posts: 2232
  • 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
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it

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

    XSharp.Tools.WPF: dependency on System.Windows.Forms? 22 Sep 2018 09:51 #6336

  • Guy Deprez's Avatar

  • Guy Deprez


  • Posts: 14
  • Please Log in or Create an account to join the conversation.

    • Page:
    • 1
    Moderators: wriedmann