Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我调用了画布myCanvas并将n他的矩形添加为
myCanvas
n
mycanvas.Children.Add(UIElement u);
稍后,我需要添加Line并将其带到背景(在矩形之前的图层上)。
Line
我不知道如何更好地解释:/
您可以使用 ZIndex:
Canvas.SetZIndex(line, 0);