WPF window from a Console project?

The accepted answer is not entirely true, I’m afraid, just add the [STAThread] attribute before your mainmethod and make references to the right libraries (like System.Windows) and you’re all set to add wpf windows.

EDIT : in the comments @JamesWilkins supplied me with this usefull link : http://code-phix.blogspot.be/2013/11/creating-wpf-project-from-scratch.html

Leave a Comment