Autofac property injection in base class
问题 I am working on a Windows Phone 8.1 application and I have a base class with public property. public class ViewModelBase { public ISomeClass MyProp {get;set;} } My derived class looks like this public class MainViewModel : ViewModelBase { private readonly INavigation _navigation; public MainViewModel(INavigation navigation) { _navigation = navigation; } } In my App.cs I have var builder = new ContainerBuilder(); builder.RegisterType<Navigation>().As<INavigation>(); builder.RegisterType