void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ViewModel = ((HubCrawl.Module.Apps.ViewModels.AppViewModel)(target)); return; case 2: this.PanoramaControl = ((HubCrawl.WPF.Controls.Panorama)(target)); return; } this._contentLoaded = true; }