Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Header = ((CoreApplication.Shell.UserControls.Header)(target));
                return;

            case 2:
                this.HeadRegion = ((System.Windows.Controls.ContentControl)(target));
                return;

            case 3:
                this.MainRegion = ((System.Windows.Controls.ContentControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Root = ((CoreApplication.Shell.UserControls.Header)(target));
                return;

            case 2:
                this.SearchMenu = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 3:
                this.Results = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 4:
                this.Query = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }