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(); }
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(); }
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); } }
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); }
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(); } }
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(); } }
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); }
private void Mediacontrol_MouseEnter(object sender, MouseEventArgs e) { this.MousemoveTimer.Stop(); MediaControlExtension.SetIsMouseOverMediaElement(ISubtitleMediaController.MediaController as UIElement, null); }