private void DoSearchCommand() { // Refresh the list, which will automatically apply the search text // var coreService = new CoreService(); Ctyes = new ObservableCollection <City>(CoreService.GetCity(searchText)); }