开发者

How to Make Silverlight control appear over another one?

开发者 https://www.devze.com 2023-01-24 06:48 出处:网络
I have two in开发者_运维问答stance of controls. When I open the second one it will appear over the first one, like two folders in Windows opened at the same time.

I have two in开发者_运维问答stance of controls. When I open the second one it will appear over the first one, like two folders in Windows opened at the same time.

How do I add functionality so that when I click on the first one, it makes it appear over (like zindex) the second one?

Thanks


Try this,

Add A Canvas, set its Z-Index, in your canvas place your UserControl1

Add Another Canvas set its primary Z-Index, in that canvas place your 2nd UserControl2.

OnClick Events of Canvases, you can easily set their z-indexes to show at the top.

0

精彩评论

暂无评论...
验证码 换一张
取 消