InfoFilmView.axaml.cs 545 B

1234567891011121314151617181920
  1. using Avalonia.Controls;
  2. namespace ApplicationAvalonia.Views
  3. {
  4. public partial class InfoFilmView : UserControl
  5. {
  6. public InfoFilmView()
  7. {
  8. InitializeComponent();
  9. PART_WebView.WebViewNewWindowRequested += PART_WebView_WebViewNewWindowRequested;
  10. }
  11. private void PART_WebView_WebViewNewWindowRequested(object? sender, WebViewCore.Events.WebViewNewWindowEventArgs e)
  12. {
  13. e.UrlLoadingStrategy = WebViewCore.Enums.UrlRequestStrategy.OpenInNewWindow;
  14. }
  15. }
  16. }