How can you add a custom control added to the canvas in code

I have a series of usercontrols that are added and removed from the canvas in code. I need to ensure that some of them are different. How do you set what ZOrder was in VB6, the order of the user control after adding it to the canvas?

+3
source share
2 answers

EDIT: Eh, sorry ... you have to translate this to VB.Net code ... since I only code in C # with WPF

Canvas.SetZIndex(control, zIndex);

Canvas.SetZIndex ()

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

+6
source

. WPF, , VB, .

0

Source: https://habr.com/ru/post/1702712/


All Articles