void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.viewModel = ((tscui.Pages.ThePages.ThePagesViewModel)(target)); return; } this._contentLoaded = true; }