void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.dataGridView1 = ((AC.AvalonControlsLibrary.Controls.DataGridView)(target)); return; case 2: this.dataGridView2 = ((AC.AvalonControlsLibrary.Controls.DataGridView)(target)); return; } this._contentLoaded = true; }