Forum Libraries, Components, and Plugins

WebView.Navigated not triggered

could I please have an explanation for why if I declare an instance of WebView, without declaring it in the View, it doesn't trigger the Navigated event?

public void NavigateTo(string url)
    WebView web = new WebView();
web.Source = url;
web.Navigated += Web_Navigated;

while this

<WebView x:Name="webView" IsVisible="False"/>`

webView.Source = url;
webView.Navigated += Web_Navigated;

works without any problem. Thanks in advance!

Sign In or Register to comment.