public virtual void DataContextChanged(DataContextChangedMessage dataContextMsg) { if (isBroadcastingDataContextChange || !gameObject.activeInHierarchy) { return; } var dcb = GetChildOfDataContextBinder(); if (dcb != null) { if (dcb != dataContextMsg.parentContext) { return; } else { //Debug.LogWarning("Child of binder....." + this.gameObject.name + " -- " + dataContextMsg.parentContext); } } DataContext = dataContextMsg.newContext; CreateBindings(); BroadcastDataContextChange(dataContextMsg.newContext); }
public override void DataContextChanged(DataContextChangedMessage dataContextMsg) { if (isBroadcastingDataContextChange || !gameObject.activeInHierarchy) { return; } var dcb = GetChildOfDataContextBinder(); if (dcb != null) { if (dcb != dataContextMsg.parentContext) { return; } else { //Debug.LogWarning("Child of binder....." + this.gameObject.name + " -- " + dataContextMsg.parentContext); } } DataContext = dataContextMsg.newContext; CreateBindings(); BroadcastDataContextChange(childDataContext); }