void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.rotate = ((System.Windows.Media.RotateTransform)(target)); return; case 2: this.titlebar = ((FoodSafetyMonitoring.TitleBarControl)(target)); return; case 3: this.usercontrol = ((System.Windows.Controls.Grid)(target)); return; } this._contentLoaded = true; }