Search code examples
maui.net-maui

How to refresh WebView from code behind in .NET MAUI?


I want to refresh webview from the code behind like I can do it when I pressed F5 key. Is it possible execute F5 key command in the code behind for webview control in .NET MAUI?


Solution

  • from the docs: WebView has a Reload method

    WebView webView = new WebView();
    ...
    webView.Reload();