You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.
Gennady Verdel edited this page Aug 9, 2016
·
1 revision
Usage sample:
Register the implementation into an IoC container.
using LogoFX.Client.MvvmViewModelFactory;
using LogoFX.Client.MvvmViewModelFactory.Unity;
iocContainer.RegisterSingleton<IViewModelFactory, ViewModelFactory>();
If you use an extensible object you can also use the respective extension
using LogoFX.Client.MvvmViewModelFactory.Unity;
var bootstrapper = new Bootstrapper();
bootstrapper.UseViewModelFactory();
Then inject the interface into the consumer:
using LogoFX.Client.MvvmViewModelFactory;
private IViewModelFactory _viewModelFactory;
public Consumer(IViewModelFactory viewModelFactory)
{
_viewModelFactory = viewModelFactory;
}