1. using CefSharp;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Navigation;
  15. using System.Windows.Shapes;
  16. namespace WpfApp1
  17. {
  18. public partial class MainWindow : Window
  19. {
  20. public MainWindow()
  21. {
  22. InitializeComponent();
  23. }
  24. public void OnFullscreenModeChange(IWebBrowser browserControl, IBrowser browser, bool fullscreen)
  25. {
  26. var control = (Control)browserControl;
  27. if(fullscreen)
  28. {
  29. //Application.Current.MainWindow.WindowStyle = WindowStyle.None;
  30. //Application.Current.MainWindow.WindowState = WindowState.Maximized;
  31. }
  32. else
  33. {
  34. }
  35. }
  36. }
  37. }