In my last post we looked at how to use the stackpanel to build stacked layouts where controls either flow vertically or horizontally. In this article we will go over the Canvas control. The canvas is probably the most basic layout control. It simply provides a container in which child controls may be positioned absolutely.
In this example, we are using Silverlight 4 and Visual Studio Web Developer 2010.
Begin by creating a new Silverlight project called CanvasSample. Then modify MainPage.xaml to look like Figure 1. In the xaml we are… [More]