markolazic88 / SwipeCardView

MIT License
173 stars 38 forks source link

Biding fields not refreshing when ItemSource is changed programatically. #31

Closed claudionirqs closed 3 years ago

claudionirqs commented 3 years ago

When filtering the SwipeCardView.ItemSource programmatically no Biding field is showing data. Se an exemplo:

private void sbFilter_TextChanged(object sender, TextChangedEventArgs e) { //Filtro do listview, o parâmetro vem do SearchBox e pode ser o número ou nome da propriedade ou o nome da supervisora var name = sbFilter.Text; List<Technologie> selectItems = GlobalVar.dataBase.Query<Technologie>("SELECT * FROM tabcandidates WHERE fullName LIKE '%" + name + "%'"); SwipeCardView.ItemsSource = selectItems; lblCounter.Text = "Showing " + selectItems.Count.ToString() + " Candidate(s)"; }

claudionirqs commented 3 years ago

It was not an issue, but a error in the code.