コード例 #1
0
        public void VisibilityAnimation()
        {
            MediaControlExtension.SetIsMouseOverMediaElement(IMediaController.MediaController as UIElement, null);
            (IVideoElement as Window).Cursor = Cursors.Arrow;
            if (Isloaded && ScreenSetting == SCREENSETTINGS.Normal && !IsFullScreenMode)
            {
                //MediaControlExtension.SetAnimateWindowsTab(IVideoElement.WindowsTab as UIElement, true);
            }

            this.MousemoveTimer.Start();
        }
コード例 #2
0
 private void WindowsTab_MouseLeave(object sender, MouseEventArgs e)
 {
     MediaControlExtension.SetIsMouseOverMediaElement(ISubtitleMediaController.MediaController as UIElement, true);
     if (!IsFullScreenMode)
     {
         MediaControlExtension.SetAnimateWindowsTab(IVideoElement.WindowsTab as UIElement, true);
     }
     else
     {
         MediaControlExtension.SetAnimateWindowsTab(IVideoElement.WindowsTab as UIElement, false);
     }
     this.MousemoveTimer.Start();
 }
コード例 #3
0
 private void ResetVisibilityAnimation()
 {
     //if((IVideoElement as Window).Dispatcher.)//if () return;
     this.MousemoveTimer.Stop();
     MediaControlExtension.SetIsMouseOverMediaElement(IMediaController.MediaController as UIElement, null);
     (IVideoElement as Window).Cursor = Cursors.Arrow;
     if (Isloaded && ScreenSetting == SCREENSETTINGS.Normal && !IsFullScreenMode)
     {
         // IVideoElement.WindowsTab.Visibility = Visibility.Visible;
         //MediaControlExtension.SetAnimateWindowsTab(IVideoElement.WindowsTab as UIElement, true);
     }
     //else { MediaControlExtension.SetAnimateWindowsTab(IVideoElement.WindowsTab as UIElement, false); }
 }
コード例 #4
0
        private void ResetVisibilityAnimation()
        {
            //(IVideoElement as Window).Dispatcher.Invoke(new Action(() =>
            //{
            if (!MediaControllerVM.IsPlaying)
            {
                return;
            }
            this.MousemoveTimer.Stop();
            MediaControlExtension.SetIsMouseOverMediaElement(ISubtitleMediaController.MediaController as UIElement, null);
            (IVideoElement as Window).Cursor = Cursors.Arrow;
            if (Isloaded && ScreenSetting == SCREENSETTINGS.Normal && !IsFullScreenMode)
            {
                // IVideoElement.WindowsTab.Visibility = Visibility.Visible;
                MediaControlExtension.SetAnimateWindowsTab(IVideoElement.WindowsTab as UIElement, true);
            }
            //else { MediaControlExtension.SetAnimateWindowsTab(IVideoElement.WindowsTab as UIElement, false); }


            //}), null);
        }
コード例 #5
0
        void MousemoveTimer_Tick(object sender, EventArgs e)
        {
            if (!MediaControllerVM.IsPlaying)
            {
                this.MousemoveTimer.Stop();
                return;
            }
            if (!MediaControllerVM.IsMouseControlOver)
            {
                (IVideoElement as Window).Cursor = Cursors.None;
                //if (!MediaControllerVM.Current.IsFullScreenMode)
                //{
                //IVideoElement.WindowsTab.Visibility = Visibility.Collapsed;
                MediaControlExtension.SetAnimateWindowsTab(IVideoElement.WindowsTab as UIElement, false);
                //}

                MediaControlExtension.SetIsMouseOverMediaElement(ISubtitleMediaController.MediaController as UIElement, false);
                this.MousemoveTimer.Stop();
            }
            else if (MediaControllerVM.IsMouseControlOver)
            {
                this.MousemoveTimer.Stop();
            }
            else
            {
                (IVideoElement as Window).Cursor = Cursors.None;

                if (!IsFullScreenMode)
                {
                    //IVideoElement.WindowsTab.Visibility = Visibility.Collapsed;
                    MediaControlExtension.SetAnimateWindowsTab(IVideoElement.WindowsTab as UIElement, false);
                }
                else
                {
                    MediaControlExtension.SetAnimateWindowsTab(IVideoElement.WindowsTab as UIElement, true);
                }
                this.MousemoveTimer.Stop();
            }
        }
コード例 #6
0
        void MousemoveTimer_Tick(object sender, EventArgs e)
        {
            if (MediaControllerViewModel == null)
            {
                MousemoveTimer.Stop(); return;
            }
            if (!MediaControllerViewModel.IsPlaying)
            {
                this.MousemoveTimer.Stop();
                return;
            }
            if (!MediaControllerViewModel.IsMouseControlOver)
            {
                (IVideoElement as Window).Cursor = Cursors.None;
                // MediaControlExtension.SetAnimateWindowsTab(IVideoElement.WindowsTab as UIElement, false);
                MediaControlExtension.SetIsMouseOverMediaElement(IMediaController.MediaController as UIElement, false);
                this.MousemoveTimer.Stop();
            }
            else if (MediaControllerViewModel.IsMouseControlOver)
            {
                this.MousemoveTimer.Stop();
            }
            else
            {
                (IVideoElement as Window).Cursor = Cursors.None;

                if (!IsFullScreenMode)
                {
                    // MediaControlExtension.SetAnimateWindowsTab(IVideoElement.WindowsTab as UIElement, false);
                }
                else
                {
                    //MediaControlExtension.SetAnimateWindowsTab(IVideoElement.WindowsTab as UIElement, true);
                }
                this.MousemoveTimer.Stop();
            }
        }
コード例 #7
0
 private void WindowsTab_MouseEnter(object sender, MouseEventArgs e)
 {
     this.MousemoveTimer.Stop();
     MediaControlExtension.SetIsMouseOverMediaElement(ISubtitleMediaController.MediaController as UIElement, null);
     MediaControlExtension.SetAnimateWindowsTab(IVideoElement.WindowsTab as UIElement, true);
 }
コード例 #8
0
 private void Mediacontrol_MouseEnter(object sender, MouseEventArgs e)
 {
     this.MousemoveTimer.Stop();
     MediaControlExtension.SetIsMouseOverMediaElement(ISubtitleMediaController.MediaController as UIElement, null);
 }