void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.TabControl = ((CefSharp.Wpf.Copy.Controls.NonReloadingTabControl)(target)); return; } this._contentLoaded = true; }