예제 #1
0
 public WebViewNavigated()
 {
     Navigated += (s, e) =>
     {
         if (NavigatedCommand?.CanExecute(e) ?? false)
         {
             NavigatedCommand.Execute(e);
         }
     };
 }
예제 #2
0
        public MVVMWebView()
        {
            Navigating += (s, e) =>
            {
                if (NavigatingCommand?.CanExecute(e) ?? false)
                {
                    NavigatingCommand.Execute(e);
                }
            };

            Navigated += (s, e) =>
            {
                if (NavigatedCommand?.CanExecute(e) ?? false)
                {
                    NavigatedCommand.Execute(e);
                }
            };
        }