void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.sp = ((System.Windows.Controls.StackPanel)(target)); return; case 2: this.name = ((System.Windows.Controls.Label)(target)); return; case 3: this.price = ((System.Windows.Controls.Label)(target)); return; case 4: this.counters = ((klm.counters)(target)); return; } this._contentLoaded = true; }