Ejemplo n.º 1
0
        protected override void OnDetachingFrom(BindableObject bindable)
        {
            base.OnDetachingFrom(bindable);
            var vm = bindable.BindingContext as INotifyDataErrorInfo;

            if (vm != null)
            {
                vm.ErrorsChanged -= ModelOnErrorsChanged;
            }
            bindable.BindingContextChanged -= BindableOnBindingContextChanged;
            _element = null;
        }
Ejemplo n.º 2
0
 protected override void OnAttachedTo(BindableObject bindable)
 {
     base.OnAttachedTo(bindable);
     _element = (IXfxValidatableElement)bindable;
     bindable.BindingContextChanged += BindableOnBindingContextChanged;
 }