void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.LessonLayerSelection = ((Nine.Views.Controls.LayerSelection)(target)); return; case 2: this.ModeMasterSwitch = ((Nine.Views.Controls.MasterSwitch)(target)); return; } this._contentLoaded = true; }