Files
docs-desktop/dotnet-desktop-guide/framework/wpf/graphics-multimedia/how-to-create-a-3-d-scene.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* Reset branch for WPF changes

* Convert BMP to PNG; fix link-out-of-scope err

* Add snippets for WPF... 6794 files!!!!

* Add missing snippets

* update file updated between migration

* Fix paths to include

* update breadcrumb and toc

* fix index links

* fix index links

* fix index links

* fix markdown
2020-09-04 09:46:28 -07:00

2.0 KiB

title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
title ms.date dev_langs helpviewer_keywords ms.assetid
How to: Create a 3D Scene 03/30/2017
csharp
vb
scenes [WPF], 3D
3D scenes
adb4a598-71a2-4dd5-b677-ea3fc11b78b2

How to: Create a 3D Scene

This example shows how to create a 3D object that looks like a flat sheet of paper which has been rotated. A xref:System.Windows.Controls.Viewport3D along with the following components are used to create this simple 3D scene:

Example

The code below shows how to create a 3D scene in XAML.

[!code-xaml3DGallery_snip#Basic3DShapeExampleWholePage]

Example

The code below shows how to create the same 3D scene in procedural code.

[!code-csharp3DGallery_procedural_snip#Basic3DShapeCodeExampleWholePage] [!code-vb3DGallery_procedural_snip#Basic3DShapeCodeExampleWholePage]

See also