コード例 #1
0
        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;
        }
コード例 #2
0
 public MySidebarControl()
 {
     this.InitializeComponent();
     myNavigationPaneControl = new MyNavigationPaneControl();
 }