void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.GateRoot = ((GatesWpf.Gate)(target)); return; case 2: this.myCanvas = ((System.Windows.Controls.Canvas)(target)); return; case 3: this.topGrid = ((System.Windows.Controls.Grid)(target)); return; case 4: this.leftGrid = ((System.Windows.Controls.Grid)(target)); return; case 5: this.rightGrid = ((System.Windows.Controls.Grid)(target)); return; case 6: this.bottomGrid = ((System.Windows.Controls.Grid)(target)); return; } this._contentLoaded = true; }