Bring element forward (Z Index) in Silverlight/WPF

前端 未结 7 1655
有刺的猬
有刺的猬 2020-12-04 19:42

All the documentation and examples I\'m finding online for setting Z-Index to bring an element forward in Silverlight are using a Canvas element as a container.

My i

7条回答
  •  离开以前
    2020-12-04 20:09

    For a control that uses the Grid as LayoutRoot you can just do something as simple as that within a control itself:

    Canvas.SetZIndex(this, 999);
    

提交回复
热议问题