Change the ZOrder of a BODY dynamically

Jun 22, 2010 at 5:28 PM
Edited Jun 29, 2010 at 5: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 5:47 PM
Edited Jun 29, 2010 at 5: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.