Entity
Entity

Reputation: 8222

Drawing on WPF with System.Drawing.Graphics?

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?

Upvotes: 2

Views: 1157

Answers (1)

cordialgerm
cordialgerm

Reputation: 8503

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

Upvotes: 4

Related Questions