Reputation: 86185
I have a WPF
window, I want to know if I can start it from a console programmatically?
Upvotes: 17
Views: 11404
Reputation: 12037
Hi You can use Application Class, with the help of this class,we can start wpf window programmatically,
Application app = new Application ();
app.Run(new Window1());
Upvotes: 23
Reputation: 888177
Use the Application
class:
new Application().Run(new SomeWindow());
Upvotes: 7