Why I've got this error by code below on bold lines?
Member
IocContainer.ShowWeatherDetailViewModel
(andIocContainer.ShowWeatherViewModel
) cannot be accessed with an instance reference; qualify it with a type name instead.error code: CS0176
public class IocContainer
{
public static IocContainer Ioc
{
get { return App.Current.Resources["ioc"] as IocContainer; }
}
// Some other static properties.
// static constructor
}
IocContainer.Ioc.ShowWeatherDetailViewModel.Item = IocContainer.Ioc.ShowWeatherViewModel.SelectedVillage;