我需要知道如何在 cefsharp 上更改 web 视图的位置时设置事件以及如何防止不重定向到其他 url
BrowserSettings browserSettings = new BrowserSettings();
browserSettings.FileAccessFromFileUrlsAllowed = true;
browserSettings.UniversalAccessFromFileUrlsAllowed = true;
browserSettings.TextAreaResizeDisabled = true;
WebView web_view;
web_view = new WebView("http://google.com", browserSettings);
web_view.LocationChanged += ??`enter code here`
web_view.Dock = DockStyle.Fill;
this.Controls.Add(web_view);