protected internal override void UnsubscribeFromEvents(TCommandTriggerItem item)
        {
            base.UnsubscribeFromEvents(item);

            _commandTriggerItemBinding.UnsubscribeFromEvents(item);
            _commandTriggerItemBinding.ValueChanged -= CommandTriggerItemBinding_ValueChanged;
        }
Exemple #2
0
 private void UnsubscribeFromTargetItemEvents()
 {
     if (TargetItemBinding.TryGetItem(out var targetItem))
     {
         if (IsFromTargetToSourceBindingMode())
         {
             try
             {
                 TargetItemBinding.UnsubscribeFromEvents(targetItem);
             }
             catch (Exception ex)
             {
                 Log($"An \"{LogFormatter.FormatException(ex)}\" exception occurred while executing " +
                     $"\"{LogFormatter.FormatTypeName(TargetItemBinding)}.{nameof(TargetItemBinding.UnsubscribeFromEvents)}\" method.");
             }
         }
     }
 }