has anyone ever tried or felt the need to start their application in a stand alone exe and use WPF as just another DLL, rather than having the Main method within it?
The advantages I see are logical separation, and being able to set up a factory etc outside the WPF code, thus reducing assembly dependencies.
I have tried doing this and can get so far e.g. by setting the WPF project setting to 'class library', removing the startupuri from app.xaml and setting its build action to compile etc, and either calling app.run from the separate exe or having a method within the main window call this.
However, the resources (e.g. styles defined for buttons) in app.xaml appear not to have any effect when I do this. Converting the WPF project back to its default settings (startupuri etc) get the resources working again, but I'm not sure where the problem lies. Any ideas?