Class TextCellDisposedFix
When using ListViews with ObservableCollections, we're getting ObjectDisposedExceptions because the Pages holding the ListViews get disposed but the ObservableCollection continues to be modified and fire update events to the (disposed) Page and ListView. Catch these exceptions here.
Inheritance
System.Object
TextCellDisposedFix
Namespace: Sensus.Android
Assembly: SensusAndroid.dll
Syntax
public class TextCellDisposedFix : TextCellRenderer
Constructors
TextCellDisposedFix()
Declaration
public TextCellDisposedFix()
Methods
OnCellPropertyChanged(Object, PropertyChangedEventArgs)
Declaration
protected override void OnCellPropertyChanged(object sender, PropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | |
System.ComponentModel.PropertyChangedEventArgs | args |