Exemple #1
0
 protected override void OnDetachingFrom(SfListView bindable)
 {
     ListView.SwipeEnded      -= ListView_SwipeEnded;
     ListView.PropertyChanged -= ListView_PropertyChanged;
     ListView         = null;
     SwipingViewModel = null;
     base.OnDetachingFrom(bindable);
 }
Exemple #2
0
 protected override void OnAttachedTo(SfListView bindable)
 {
     ListView                    = bindable;
     ListView.SwipeEnded        += ListView_SwipeEnded;
     ListView.PropertyChanged   += ListView_PropertyChanged;
     SwipingViewModel            = new ListViewSwipingViewModel();
     SwipingViewModel.sfListView = ListView;
     bindable.BindingContext     = SwipingViewModel;
     ListView.ItemsSource        = SwipingViewModel.InboxInfo;
     base.OnAttachedTo(bindable);
 }