Basic 3D Drawing
In Silverlight, all 3D drawing takes place inside a control called DrawingSurface, which is found in the System.Windows.Controls namespace. DrawingSurface is an ordinary Silverlight control, which means you don't need any to add any assembly references or import any namespaces to use it. Usually, you'll place the DrawingSurface in a container with a black background, so the content can be drawn overtop:
<Grid x:Name="LayoutRoot" Background="Black">
<DrawingSurface Width="400" Height="300"></DrawingSurface>
</Grid>
When you add the DrawingSurface control to a page, you can give it fixed dimensions (as in this example), which allows you to write the simplest drawing code. Or, you can let the drawing surface expand to fill its ...
Get Pro Silverlight 5 in VB now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.