void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.sameAreaPanel = ((Pfz.WpfControls.SameAreaPanel)(target)); return; case 2: this.gameControl = ((AIChallenge.GameControl)(target)); return; } this._contentLoaded = true; }