void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.colorPicker = ((CustomControls.ColorPickerUserControl)(target)); return; case 2: this.sliderRed = ((System.Windows.Controls.Slider)(target)); return; case 3: this.sliderGreen = ((System.Windows.Controls.Slider)(target)); return; case 4: this.sliderBlue = ((System.Windows.Controls.Slider)(target)); return; } this._contentLoaded = true; }