Esempio n. 1
0
 protected override void OnDestroyed()
 {
     ViewModel = null;
     base.OnDestroyed();
     if (cellRenderer != null)
     {
         cellRenderer.Dispose();
         cellRenderer = null;
     }
 }
 protected override void OnDestroyed()
 {
     if (ViewModel != null)
     {
         ViewModel.PropertyChanged -= HandleViewModelPropertyChanged;
         ViewModel = null;
     }
     if (cellRenderer != null)
     {
         cellRenderer.Dispose();
         cellRenderer = null;
     }
     base.OnDestroyed();
 }