Common tasks
Tell the page something when it loads, and keep sending it fresh numbers. The page receives each one in its message listener.
view.Post("{\"type\":\"state\",\"balance\":" + Wallet.Balance + "}");
Hide the view when the player presses Escape, and run your code when that happens.
view.EscapeHides = true;
view.Dismissed += () => Logger.LogInfo("The player closed the page.");
Cover only part of the screen, instead of the whole window.
view.SetBounds(100, 100, 600, 400);
Show the page on a computer monitor while the player uses the computer. See Pinning.
ComputerApps.ScreenChanged += s => { if (s != null) { view.PinTo(s); view.Show(); } else view.Hide(); };
Let a frame in your page show one live website. Do this before the page loads. See Frame hosts.
if (!view.AllowFrameHost("stalburg.net")) Logger.LogWarning("The host was refused: " + WebUi.LastError);
In these snippets, view is the WebView that WebUi.Open gave you.