WPF Single Instance Application

May 28, 2010

The Problem The question this post solves is how to enforce that your WPF application has only one instance? Solution Source The solution is based on code found in some WPF reference applications which Microsoft will soon (?) release. I didn’t wrote it, but I used it several times and it’s the best solution I’ve found to date, so I'd hate to see it unpublished. Solution Advantages So, what are the advantages of this solution? after all, it’s not the first time someone posts a solution for this problem. Well, the most important advantage is that it works. No glitches. No special cases. No inherent...
26 comments