public ListOfNames() { this.InitializeComponent(); DataContext = ServiceProviderContainer.GetService <ListOfNameViewModel>(); }
public CountOfNamesView() { this.InitializeComponent(); DataContext = ServiceProviderContainer.GetService <CountOfNamesViewModel>(); }