void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.myNavigationPaneControl = ((OutlookUI_HOL.MyNavigationPaneControl)(target)); return; case 2: this.myNavigationGrid = ((System.Windows.Controls.Grid)(target)); return; case 3: this.myNavigationBorder1 = ((System.Windows.Controls.Border)(target)); return; case 4: this.myNavigationBorder2 = ((System.Windows.Controls.Border)(target)); return; case 5: this.myNavigationBorder3 = ((System.Windows.Controls.Border)(target)); return; case 6: this.myNavigationSplitter = ((System.Windows.Controls.GridSplitter)(target)); return; } this._contentLoaded = true; }
public MySidebarControl() { this.InitializeComponent(); myNavigationPaneControl = new MyNavigationPaneControl(); }