void IComponentConnector.Connect(int connectionId, object target) { if (_componentConnector != null) { _componentConnector.Connect(connectionId, target); } }
public override void SetConnectionId(object root, int connectionId, object instance) { try { IComponentConnector connector = root as IComponentConnector; if (connector != null) { connector.Connect(connectionId, instance); } } catch (Exception exception) { if (CriticalExceptions.IsCriticalException(exception)) { throw; } throw this.CreateException(System.Xaml.SR.Get("SetConnectionId"), exception); } }