Window.Graphics.DrawLine - what am I missing?

I took the Simple example from the Glide example and added the code below. I expected to see a horizontal red line, but don’t see it. I’m sure I’ve missed something obvious.


// Load the Window XML string. 
window = GlideLoader.LoadWindow(xml);

// added by me
window.Graphics.DrawLine(Colors.Red, 5, 0, 75, 100, 75);

// also tried window.Render();
window.Invalidate();

You cannot draw directly onto a Window. Please use the Canvas component.

That did it! I figured there was something obvious.

Thanks Josh.

BTW - I’m loving that this is simply designed/tested in the emulator. It’s a tremendous time saver!