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

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