private void OnNavigating(object sender, WebNavigatingEventArgs e) { var args = new CustomWebViewNavigatingArgs { Sender = sender, EventArgs = e }; if (NavigatingCommand?.CanExecute(args) ?? false) { NavigatingCommand.Execute(args); } }
public MVVMWebView() { Navigating += (s, e) => { if (NavigatingCommand?.CanExecute(e) ?? false) { NavigatingCommand.Execute(e); } }; Navigated += (s, e) => { if (NavigatedCommand?.CanExecute(e) ?? false) { NavigatedCommand.Execute(e); } }; }
private void BindableWebView_Navigating(System.Object sender, WebNavigatingEventArgs e) { NavigatingCommand?.Execute(null); }