void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ViewModel = ((HubCrawl.ViewModels.HubCrawlViewModel)(target)); return; case 2: this.ModuleLayoutRoot = ((MahApps.Metro.Controls.TransitioningContentControl)(target)); return; } this._contentLoaded = true; }