tags:

views:

923

answers:

1

I have a series of usercontrols that are added and removed from a canvas in code behind. I need to insure that certain ones are forward of others. How do you set, what used to be the ZOrder in VB6, the order of a user control once it is added to a canvas?

+4  A: 

EDIT: Eh, apologies...you'll have to translate this to VB.Net code...as i only code in C# with WPF

Canvas.SetZIndex(control, zIndex);

Canvas.SetZIndex()

And more info about canvas and the z-index: Canvas.ZIndex Attached Property

Bubblewrap