tryphotino/photino.Samples

LoadRawString does nothing

Closed this issue · 1 comments

Using following code, window is just white. I'm on Windows 11.

PhotinoNET.PhotinoWindow w = new();
w.Title = "Test";
w.Size = new System.Drawing.Size(800, 600);
w.Centered = true;
w.IconFile = iconFile;
w.Resizable = false;
w.UseOsDefaultLocation = true;
w.UseOsDefaultSize = false;
w.LoadRawString("<html><head></head><body style='width: 100%; height: 100%; background-color: #222222; color: #FFFFFF;'><div>Hello World!</div></body></html>");
w.WaitForClose();

My main method had Task return type, that breaks this library for some reason. Using public static void worked.