Ejemplo n.º 1
0
        }//在本控件上创建ListShow控件

        private void CreateSwicthShow()
        {
            if (this.CC_SwitchShow.Content == null || CC_SwitchShow.Content as SwitchShow == null)
            {
                UC_SwicthShow              = new SwitchShow();
                UC_SwicthShow.ItemClick   += new SwitchShow.ItemClickEventHandler(UC_MainList_ItemsClicked);
                this.CC_SwitchShow.Content = UC_SwicthShow;
                GoToSwitchState();
            }
            else
            {
                GoToSwitchState();
            }
        }//在本控件上创建SwitchShow控件
Ejemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UserControl = ((VideoPanel.SwitchShow)(target));
                return;

            case 2:
                this.UC_CoverFlow = ((VideoPanel.CoverFlow)(target));
                return;

            case 3:
                this.TBK_Title = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }