/// <summary> /// Initializes the development harness /// </summary> public Harness() { InitializeComponent(); if (Execute.InDesignMode) return; // Create and attach ViewModel var navigator = Composition.GetInstance<INavigator>(); var viewModels = Composition.GetInstances<IDiscoverableViewModel>(); DataContext = new HarnessViewModel(navigator, viewModels); }
/// <summary> /// Initializes the development harness /// </summary> public Harness() { InitializeComponent(); if (Execute.InDesignMode) { return; } // Create and attach ViewModel var navigator = Composition.GetInstance <INavigator>(); var viewModels = Composition.GetInstances <IDiscoverableViewModel>(); DataContext = new HarnessViewModel(navigator, viewModels); }