Put DrawingGroup on a Canvas?

Posted by stefan.at.wpf on Stack Overflow See other posts from Stack Overflow or by stefan.at.wpf
Published on 2010-04-13T12:17:34Z Indexed on 2010/04/13 12:23 UTC
Read the original article Hit count: 556

Filed under:
|
|

Hello,

I have a DrawingGroup and I want to put it on a Canvas, but because DrawingGroup is no UIElement, this is not possible. Whats the best way to do this? And from which class could I derive, so that I could do something like

canvas1.Children.Add(new myDrawingGroup());

(Meaning I want to add my DrawingGroup as one element on the canvas, instead of several single Drawings / Geometries. I also need hit testing and databinding support.)

Thank you very much for any hint!

© Stack Overflow or respective owner

Related posts about wpf

Related posts about canvas