Creating Single Instance WPF Applications that open multiple Files
Posted by: Rick Strahls WebLog,
on 13 May 2016 |
View original | Bookmarked: 0 time(s)
If you're building document centric applications, Singleton style EXE applications are pretty common. Rather than creating new windows for each opened file, a more common scenario is to open new tabs in a single instance. In this post I'll describe how to create a WPF application that allows only a single instance to run and passes command line arguments passed in secondary instances to the primary instance and I'll describe some pitfalls that you might have to watch out for.