/// <summary>
        /// Initializes a new instance of the <see cref="MainWindowViewModel"/> class.
        /// </summary>
        /// <param name="eventAggregator">The event aggregator.</param>
        /// <param name="windowManager">The window manager.</param>
        public MainWindowViewModel(IEventAggregator eventAggregator, IWindowManager windowManager)
        {
            this.eventAggregator = eventAggregator;
            this.windowManager   = windowManager;

            WindowTitle   = "Design Time Support Test";
            WindowContent = new MainWindowContentViewModel(IoC.Get <IEventAggregator>(), IoC.Get <IWindowManager>());
        }
Beispiel #2
0
        /// <summary>
        /// Initializes the <see cref="DesignTimeModels"/> class.
        /// </summary>
        static DesignTimeModels()
        {
            var eventAggregator = IoC.Get <IEventAggregator>();
            var windowManager   = IoC.Get <IWindowManager>();

            MainWindowViewModel        = new MainWindowViewModel(eventAggregator, windowManager);
            MainWindowContentViewModel = new MainWindowContentViewModel(eventAggregator, windowManager);
        }