2

I'm making a game in WPF in which I need to be able to use the drawing functions in System.Drawing.Graphics. I looked into the OnRender function, but that only has a DrawingContext object, which is not what I need.

So, is there some control in WPF that I can place on my WPF Window that has an OnPaint (or something similar) event?

1 Answer 1

4

You could use the WindowsFormsHost to host a Win Forms Control with OnPaint overrided

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.