开发者

how to bring canvas above all the other controls

i am working 开发者_Go百科on a silver light application . i have a canvas in the page,i want to show the canvas above all the other controls or want to bring all the canvas to the front of the page.how can that be done


You can remove it from your main containing control (usually a grid - LayoutRoot) and add it back at the end to ensure it's above all other controls.

LayoutRoot.Children.Remove(myCanvas);
LayoutRoot.Children.Add(myCanvas); 

Or you can use the insert method to add it at the desired index.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜