void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.CUSTOMEUSERCONTROL = ((ES.UI.Setups.TestGridView)(target)); return; case 2: this.grid = ((ExtendedGrid.ExtendedGridControl.ExtendedDataGrid)(target)); return; } this._contentLoaded = true; }