开发者

How to Make Silverlight control appear over another one?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜