コード例 #1
0
        }//WMP的包装控件为VideoConsole3 控制条为VideoConsole3Part

        private void StartMediaElementControlPanel(VideoInfo itemInfo, List <VideoInfo> list)
        {
            VideoConsole2 console;

            if (CC_MainHold.Content != null && CC_MainHold.Content is VideoConsole2)
            {
                console              = CC_MainHold.Content as VideoConsole2;
                console.VideoList    = list;
                console.CurrentVideo = itemInfo;
                console.Visibility   = Visibility.Visible;
                console.ReLoadMedia();
            }
            else
            {
                console              = new VideoConsole2();
                console.VideoList    = list;
                console.CurrentVideo = itemInfo;
                CC_MainHold.Content  = console;
                console.ReLoadMedia();
            }
            GoToExpanderState();
        }//ME的包装控件为VideoConsole2
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UserControl = ((VideoPanel.VideoConsole2)(target));
                return;

            case 2:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.ME_MainShow = ((System.Windows.Controls.MediaElement)(target));
                return;

            case 4:
                this.TBK_Tip = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.EP_Buffering = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 6:
                this.RTF_Buffering = ((System.Windows.Media.RotateTransform)(target));
                return;

            case 7:
                this.TBK_Fail = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:
                this.BD_DownConsole = ((System.Windows.Controls.Grid)(target));
                return;

            case 9:
                this.BTN_Vdown = ((System.Windows.Controls.Button)(target));
                return;

            case 10:
                this.BTN_Vup = ((System.Windows.Controls.Button)(target));
                return;

            case 11:
                this.BTN_Back = ((System.Windows.Controls.Button)(target));
                return;

            case 12:
                this.BTN_GoBackward = ((System.Windows.Controls.Button)(target));
                return;

            case 13:
                this.BTN_Pause = ((System.Windows.Controls.Button)(target));
                return;

            case 14:
                this.BTN_Play = ((System.Windows.Controls.Button)(target));
                return;

            case 15:
                this.BTN_KuaiJin = ((System.Windows.Controls.Button)(target));
                return;

            case 16:
                this.BTN_KuaiTui = ((System.Windows.Controls.Button)(target));
                return;

            case 17:
                this.BTN_GoForward = ((System.Windows.Controls.Button)(target));
                return;

            case 18:
                this.TBK_CTime = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 19:
                this.TBK_Stime = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 20:
                this.UC_ProgressBar = ((VideoPanel.MyProgressBar)(target));
                return;
            }
            this._contentLoaded = true;
        }