Beispiel #1
0
        private void DrawingSurfaceBackground_OnLoaded(object sender, RoutedEventArgs e)
        {
            if (d3dRenderer == null)
            {
                d3dRenderer = new SimpleRenderer();

                // Use the Direct3D SimpleRenderer class to display a content into the DrawingSurface
                DrawingSurfaceBackground.SetBackgroundContentProvider(d3dRenderer);
            }
        }
        private void DrawingSurfaceBackground_OnLoaded(object sender, RoutedEventArgs e)
        {
            if (d3dRenderer == null)
            {
                d3dRenderer = new SimpleRenderer();

                // Use the Direct3D SimpleRenderer class to display a content into the DrawingSurface
                DrawingSurfaceBackground.SetBackgroundContentProvider(d3dRenderer);
            }
        }