Change the ZOrder of a BODY dynamically

Jun 22, 2010 at 4:28 PM
Edited Jun 29, 2010 at 4:50 PM
I need to change the ZOrder of the Canvas associated to physics BODY dynamically. I know this can not be done by setting the Canvas.Zindex of the associate UIElement. But I couldn't find a way to do it. Please help me. Thanks.
Jun 29, 2010 at 4:47 PM
Edited Jun 29, 2010 at 4:48 PM
Sorry for asking such a stupid question.
Andy have already wrapped the Canvas associated to each physics Body by PhysicsSprites.
I just have to set the ZIndexProperty of PhysicsSprites
Thank you Andy for the job you've been done.