Sep 9, 2010 at 5:08 PM
Edited Sep 9, 2010 at 5:09 PM
I'm currently knee-deep in my first real adventure into Composition.
I have a property on my Application (WPF) object that I'm trying to export. The property has an ExportAttribute assigned to it and everything is configured correctly. However, when the container tries to resolve the export, the following exception
The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.
1) Cannot create more than one System.Windows.Application instance in the same AppDomain.
Is there a way to tell the Export attribute to use the Application.Current property when resolving the Application object required for the Export?
Thanks for any assistance you can provide!