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?
From stackoverflow
-
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);And more info about canvas and the z-index: Canvas.ZIndex Attached Property
0 comments:
Post a Comment