示例#1
0
        //// One alternative is to use the Module Discovery method of populating
        //// the Module Catalog (sub-folder .\Modules).  It requires a post-build event
        //// in each module to place the module assembly in the module catalog directory.
        //protected override IModuleCatalog CreateModuleCatalog()
        //{
        //    var moduleCatalog = new DirectoryModuleCatalog();
        //    moduleCatalog.ModulePath = @".\Modules";
        //    return moduleCatalog;
        //}

        protected override void ConfigureContainer()
        {
            base.ConfigureContainer();

            _shellWindowViewModel = Container.Resolve <ShellWindowViewModel>();
            Container.RegisterInstance <ITweetDataService>(_shellWindowViewModel);
        }
示例#2
0
        public ShellWindow(ShellWindowViewModel shellWindowViewModel)
        {
            InitializeComponent();

            DataContext = shellWindowViewModel;
        }