void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.titleBar = ((ICTProjectPOS.TitleBar)(target)); return; case 2: this.ContentPanel = ((System.Windows.Controls.ContentControl)(target)); return; } this._contentLoaded = true; }