void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.SplitControl = ((FoodSafetyMonitoring.SplitBarControl)(target)); return; case 2: this.BackgoundImage = ((System.Windows.Media.ImageBrush)(target)); return; case 3: this.ForegoundFillVer = ((System.Windows.Shapes.Rectangle)(target)); return; case 4: this.ForegoundFillHor = ((System.Windows.Shapes.Rectangle)(target)); return; case 5: this.BtnDir = ((System.Windows.Controls.Image)(target)); return; } this._contentLoaded = true; }