Hi Jan thanks for your answer, I tried this:
files are located in Appname\files directory
files used test.html style.css
file =test.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<link rel= "stylesheet" type ="text/css" media= "screen" href = "style.css"/>
<title>Test</title>
<meta content="joop" name="author">
<meta content="test" name="description">
</head>
to load the style file I did your code
:
Dim CSSPath As String = File.Combine(File.DirAssets,"style.css")
Dim html As String = $"<link rel= "stylesheet" Type ="text/css" media= "screen" href = "${CSSPath}"/>"$
WebView1.LoadHtml(html)
to load the html file I did:
html = File.ReadString(File.DirAssets, "test.html")
WebView1.LoadHtml(html)
The webpage is shown in debug and release app but without the css styling.
How can Webview1 remember the location off the css file when parsing the
html file ?, I think I don't understand it fully.
Joop