Exemplo n.º 1
0
        private void HtmlSource()
        {
            var htmlSource = new HtmlWebViewSource();
            var path       = "Xamarin_Forms_WebView.Resources.page001.html";

            htmlSource.Html          = SampleExtensions.GetValueEmbeddedResource(typeof(EmbeddedResourceView).Assembly, path);
            webViewHtmlString.Source = htmlSource;
        }
Exemplo n.º 2
0
        private void btSample_Clicked(object sender, EventArgs e)
        {
            var path = "Vuejs_XF_App.Resources.page0002.html";

            var htmlSource = new HtmlWebViewSource();

            htmlSource.BaseUrl       = Path.Combine(DependencyService.Get <IBaseUrl>().Get(), "page0002/");
            htmlSource.Html          = SampleExtensions.GetValueEmbeddedResource(typeof(SamplesWebView).Assembly, path);
            webViewHtmlString.Source = htmlSource;
        }