Пример #1
0
 private void OnFullScreenChanged()
 {
     if (IsFullScreen)
     {
         _lastWindowState = WindowState;
         _lastWindowStyle = WindowStyle;
         SetCurrentValue(WindowStyleProperty, WindowStyle.None);
         SetCurrentValue(WindowStateProperty, WindowState.Maximized);
     }
     else
     {
         SetCurrentValue(WindowStyleProperty, _lastWindowStyle);
         SetCurrentValue(WindowStateProperty, _lastWindowState);
     }
     FullScreenChanged?.Invoke(this, EventArgs.Empty);
 }
Пример #2
0
 private void VideoPlayerBlock_FullScreenStatusChanged(object sender, bool e)
 {
     allocated = false;
     FullScreenChanged?.Invoke(this, e);
 }
 private void Player_FullScreenChanged(object player, EventArgs args)
 {
     FullScreenChanged.IfNotNull(i => i(this, null));
 }
 private void CoreWebView2_ContainsFullScreenElementChanged(object sender, object e)
 {
     FullScreenChanged?.Invoke(CoreWebView2.ContainsFullScreenElement);
     logger.Debug($"Full screen ${(CoreWebView2.ContainsFullScreenElement ? "activated" : "deactivated")}.");
 }