1234567891011121314151617181920 |
- using Avalonia.Controls;
- namespace ApplicationAvalonia.Views
- {
- public partial class InfoFilmView : UserControl
- {
- public InfoFilmView()
- {
- InitializeComponent();
- PART_WebView.WebViewNewWindowRequested += PART_WebView_WebViewNewWindowRequested;
- }
- private void PART_WebView_WebViewNewWindowRequested(object? sender, WebViewCore.Events.WebViewNewWindowEventArgs e)
- {
- e.UrlLoadingStrategy = WebViewCore.Enums.UrlRequestStrategy.OpenInNewWindow;
- }
- }
- }
|