Importing from referenced assembly - MEF
- by cmaduro
I have the following simplified code:
namespace Silverbits.Applications
{
public partial class SilverbitsApplication : Application
{
[Import("MainPage")]
public UserControl MainPage
{
get { return RootVisual as UserControl; }
set { RootVisual = value; }
}
public SilverbitsApplication()
{
…