public ContoView() { InitializeComponent(); DataContext = vm; var AllAccounts = new ObservableCollection <AccountsModel>(FakeDataContext.GetAllAccounts().Where(e => e.FirmaId == ConfigTempoSinglenton.GetInstance().CurrentFirma.Id)); List <string> test = new List <string>(); foreach (var item in AllAccounts) { test.Add(item.ToString()); } kreditsmetka.AutoCompleteManager.DataProvider = new SimpleStaticDataProvider(test); //kreditsmetka.AutoCompleteManager.AutoAppend = true; debitsmetka.AutoCompleteManager.DataProvider = new SimpleStaticDataProvider(test); //debitsmetka.AutoCompleteManager.AutoAppend = true; //List<string> test = new List<string>(); //foreach (var item in vm.Cities) //{ // test.Add(item.Name); //} //city.AutoCompleteManager.DataProvider=new SimpleStaticDataProvider(test); }