Search Wiki:
Resource Page Description
A WPF window which uses a Viewport3D control to render a cube which contains 2D content on each side using Viewport2DVisual3D controls.

Details

I thought I'd try and create something semi-useful while teaching myself about WPF 3D.
Each of the cube's sides is a Viewport2DVisual3D control arranged in 3D space to look like a cube.
Each Viewport2DVisual3D contains a Grid which contains a simple ListView and button, but you get the idea of what you can do.

The code is reasonably well commented but I might update this page to highlight a few things at a later date...

Input Controls
Mouse Left - drags window (if you click on the areas in between the ListViews and Buttons).
Mouse Right + Drag Mouse + let go - rotates the cube in the direction you move the mouse (N S E W),
the cube side will always rotate so that the 2D content displays the right way up.
Close Button Click - guess what it does :)

CubeWindow.JPG
Last edited Jun 29 2008 at 1:25 AM  by hortha, version 9
Comments
JaDaar wrote  Jul 1 2008 at 11:05 PM  
Looks so interesting and cool, I must try it out!!

Updating...
Page view tracker