Project Description
3DView control for displaying 2D content in a 3D space. It uses the WPF 3DTool library and Infragistics ToyBox(reflector assembly).

Usage:
1. Add the clr-namespace : xmlns:local="clr-namespace:_3DView;assembly=3DView"
2. Add the 3DView Control to your page. The control has a custom element with front and back content.
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Loaded="Window_Loaded"
Title="Window1" Height="466" Width="639" xmlns:local="clr-namespace:_3DView;assembly=3DView">
<Grid Name="myGrid" >

<local:_3DViewControl x:Name="My3DView" Height="{Binding ElementName=myGrid, Path=Height}"
Width="{Binding ElementName=myGrid, Path=Width}" TimeSpanMiliseconds="450">
<local:_3DViewControl.Children>
<local:_3DViewElement>
<local:_3DViewElement.FrontElement>
<Button>Click me1</Button>
</local:_3DViewElement.FrontElement>
<local:_3DViewElement.BackElement>
<Button>Click me11</Button>
</local:_3DViewElement.BackElement>
</local:_3DViewElement>

<local:_3DViewElement>
<local:_3DViewElement.FrontElement>
<Button>Click me2</Button>
</local:_3DViewElement.FrontElement>
<local:_3DViewElement.BackElement>
<Button>Click me22</Button>
</local:_3DViewElement.BackElement>
</local:_3DViewElement>

<local:_3DViewElement>
<local:_3DViewElement.FrontElement>
<Button>Click me3</Button>
</local:_3DViewElement.FrontElement>
<local:_3DViewElement.BackElement>
<Button>Click me33</Button>
</local:_3DViewElement.BackElement>
</local:_3DViewElement>

<local:_3DViewElement>
<local:_3DViewElement.FrontElement>
<Button>Click me4</Button>
</local:_3DViewElement.FrontElement>
<local:_3DViewElement.BackElement>
<Button>Click me44</Button>
</local:_3DViewElement.BackElement>
</local:_3DViewElement>
</local:_3DViewControl.Children>
</local:_3DViewControl>
</Grid>
</Window>
3. On Window_Loaded Event, add the line: this.My3DView.Init();

The result should be:
image.png

Have fun!

Last edited Sep 1, 2008 at 1:06 PM by eusebiu, version 8