I am using SFListView Control to display the list of filter options
I tried to assign the value to model in listview-clickevent in MyContentPage.xaml.cs. but its not updating in sflistview. i tried multiple ways to update the sflistview like assiging different values to Veiw Cache & data cache but still not working
After all try's i tried Listview control of xamarin form - then all of sudden its working. I tried same code that have used in sflistview to listview control of xamarin forms, its working in listview xamarin control but not sflistview
public class Contacts : INotifyPropertyChanged
{
private string contactName;
public string ContactName
{
get { return contactName; }
set
{
if (contactName != value)
{
contactName = value;
this.RaisedOnPropertyChanged("ContactName");
}
}
}
…
public event PropertyChangedEventHandler PropertyChanged;
public void RaisedOnPropertyChanged(string _PropertyName)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(_PropertyName));
}
}
} |