I want to use WPF windows in future applications instead of Windows forms.
The current setup is as Class Library Project with a public static method. I have added a Windows Form item to the Project. In the public static method I create an instance of the Windows Form Class and use the method ShowDialog.
The reason why I use this setup is that I need my own .net dialog in an other program. This program can only call public static methods i .net.
I have solved the problem by creating a WPF Application Project and added a public Class item to this project. In the public static method i create an instace of the WPF window class and use the method ShowDialog. This works but I would like to create a dll without main-method.
How to show a WPF window from a public static method in a Class Library project (dll)?