Loading Local HTML with WebView Xamarin Forms

前端 未结 5 1124
离开以前
离开以前 2021-01-19 20:11

I am trying to load a local HTML page in a webview with Xamarin forms. I am using the basic example in the dev docs although I can get a URL to load I can\'t get my own HTML

5条回答
  •  清歌不尽
    2021-01-19 20:15

    This is an old post but It may help someone looking to implement with Android, iOS and UWP with just one HTML file. With this approach you only use one HTML file for all platforms.

    https://docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/files?tabs=vsmac#loading-files-embedded-as-resources

提交回复
热议问题