void client_GetLocationsCompleted(object sender, GetLocationsCompletedEventArgs e) { if (e.Error == null) { string xml = e.Result; var locList = getCatListFromXml(xml); locationPicker.ItemsSource = locList; if (!String.IsNullOrWhiteSpace(currentFilters.Location)) { var current = (from p in locList where (p as Item).Name == currentFilters.Location select p).First(); locationPicker.SelectedItem = current; } } asyncCompleted++; CheckFinish(); }