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.
精彩评论