|
|
@@ -28,10 +28,13 @@ namespace HKCardOUT.Views |
|
|
|
|
|
|
|
public async void InitView2(string input) |
|
|
|
{ |
|
|
|
StringBuilder sb = new StringBuilder(); |
|
|
|
sb.Append($"<html><body>{input}</body></html>"); |
|
|
|
var html = sb.ToString(); |
|
|
|
await view2.EnsureCoreWebView2Async(null); |
|
|
|
view2.CoreWebView2.Settings.AreDefaultContextMenusEnabled = false; |
|
|
|
view2.CoreWebView2.Settings.AreDevToolsEnabled = false; |
|
|
|
view2.CoreWebView2.NavigateToString("<html><body><div>hello world</div></body></html>"); |
|
|
|
view2.CoreWebView2.NavigateToString(html); |
|
|
|
} |
|
|
|
} |
|
|
|
} |