Silverlight 5–What’s New #4

Wednesday, April 13, 2011

This post is dedicated to 3D graphics in Silverlight 5. The graphics engine is pretty similar to XNA and for better understanding I suggest to read some 3D graphics theory and some XNA documentation. To display the 3D graphics Silverlight 5 adds a new FrameworkElement called “DrawingSurface”. To use it, first you application must have GPU acceleration enabled at the Silverlight plug-in level: <param name="EnableGPUAcceleration" value="true" /> Once your plug-in set, the new element could be added and used from XAML: <Grid x:Name="LayoutRoot" Background="LightGoldenrodYellow"> <DrawingSurface x:Name="surface" Draw="DrawingSurface_Draw" ...
one comment