ViewPort3D: How to create a WPF Object (Cube) with text on it from Code behind
问题 I want to draw a set of 3D-Cubes, each Cube should display a name and also should have its own event handler when the cube is selected. Is it possible to implement it using code behind or xaml binding? 回答1: To draw a 3D cube from code behind I would use the Helix3D toolkit CubeVisual3D. However if you want to stick with stock WPF 3D elements it is fairly simple to implement. start here to Learn about Text in 3D enviroments http://www.codeproject.com/Articles/33893/WPF-Creation-of-Text-Labels