开发者

how to bring canvas above all the other controls

开发者 https://www.devze.com 2023-01-05 14:04 出处:网络
i am working 开发者_Go百科on asilver light application . i have acanvas in thepage,i want to show the canvas above all the othercontrols or want to bring all the canvas to the front of the page.how ca

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

精彩评论

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