private void OnConnectionChanging(object sender, InputConnectionChangingEventArgs e) { e.IsCancelled = !(e.NewOutput is ColorProvider); }
private void OnConnectionChanging(object sender, InputConnectionChangingEventArgs e) { e.IsCancelled = true; // Non of the outputs are providing Animals... so cancel this. }