Example #1
0
 protected override void OnDetachingFrom(BindableObject bindable)
 {
     if (_token != null)
     {
         _token.Dispose();
     }
     _sliderViews = null;
     _messenger   = null;
     base.OnDetachingFrom(bindable);
 }
Example #2
0
 protected override void OnAttachedTo(BindableObject bindable)
 {
     if (bindable != null)
     {
         _sliderViews = bindable as IContainSliderViews;
         _messenger   = Mvx.IoCProvider.Resolve <IMvxMessenger>();
         _token       = _messenger.SubscribeOnMainThread <SlidersDataMessage>(PresentData);
     }
     base.OnAttachedTo(bindable);
 }