-
In a typical WPF application, the
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Why not keep the entry point as Application, but do the mutex check in the Bootstrapper's OnStart method (or perhaps later, e.g. in Configure)? Another option is to write your own Main, then set it as the entry point in the project properties (in Application -> General -> Startup object). That means you can keep your App.xaml set as an ApplicationDefinition. If neither of those work, take a look at the code that WPF is generating (in obj), and find the difference between the outputs for ApplicationDefinition and Page. |
Beta Was this translation helpful? Give feedback.
Why not keep the entry point as Application, but do the mutex check in the Bootstrapper's OnStart method (or perhaps later, e.g. in Configure)?
Another option is to write your own Main, then set it as the entry point in the project properties (in Application -> General -> Startup object). That means you can keep your App.xaml set as an ApplicationDefinition.
If neither of those work, take a look at the code that WPF is generating (in obj), and find the difference between the outputs for ApplicationDefinition and Page.