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); }
private void VideoPlayerBlock_FullScreenStatusChanged(object sender, bool e) { allocated = false; FullScreenChanged?.Invoke(this, e); }
private void CoreWebView2_ContainsFullScreenElementChanged(object sender, object e) { FullScreenChanged?.Invoke(CoreWebView2.ContainsFullScreenElement); logger.Debug($"Full screen ${(CoreWebView2.ContainsFullScreenElement ? "activated" : "deactivated")}."); }