/// <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);
        }
Exemple #2
0
        /// <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);
        }