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.
我有这个 XAML 代码:
<Grid x:Name="Sample" Canvas.ZIndex="20"...
如何使用 C# 更改此网格的 ZIndex?
好的,我找到了答案。
用于它:
Canvas.SetZIndex(obj, N);
obj 是 Grid(或另一个 UIElement),N 是 ZIndex (Int32)。