Beispiel #1
0
        //[Import]
        //public IApplicationInfoService InfoService { get; set; }
        //public MvvmServiceWpf(IExportLocatorScope scope, Func<Type,object> locate, IMessageBus msg) : base(scope,locate,msg)
        //{
        //}


        public void RegisterWithProgress()
        {
            var vm = GetProgressLoadingViewModel();
            //vm.Title = InfoService.Name;

            var progressWindow = new ProgressLoadingView
            {
                DataContext = vm,
            };

            progressWindow.AsWindow().Show();
            //SetMainView(progressWindow);

            var t = Task.Run(() => {
                base.Register();
                Application.Current.Resources.MergedDictionaries.Add(_dictionary);
            });


            ViewHelperFactory.Register <IView>(v => new ViewHelperWpf((FrameworkElement)v));
        }
Beispiel #2
0
 public override void Register()
 {
     base.Register();
     Application.Current.Resources.MergedDictionaries.Add(_dictionary);
     ViewHelperFactory.Register <IView>(v => new ViewHelperWpf((FrameworkElement)v));
 }