How to use button and Trackballdecorator

Topics: Developer Forum, Project Management Forum, User Forum
Jul 1, 2007 at 11:05 AM
Hi,

I've finished the tutorial about the 3d videoplayer and wanted to extend some functionality to load the uri dynamically. So I added a simple button which fires a Filedialog. Unfortunatelly this is not working in combination with the Trackballdecorator. The button is rendered but not clickable!

Anyone?
Sep 21, 2007 at 3:42 AM

Francillo wrote:
Hi,

I've finished the tutorial about the 3d videoplayer and wanted to extend some functionality to load the uri dynamically. So I added a simple button which fires a Filedialog. Unfortunatelly this is not working in combination with the Trackballdecorator. The button is rendered but not clickable!

Anyone?


Hi Francillo !

To clickable 2d control in 3dTool you must use some tag like this:
<Inter3d:Interactive3DDecorator> and <Inter3d:InteractiveVisual3D> with Inter3D is custom tag defined in <Page> tag
ex: <Page x:Class="InfoMapDemo2.Default"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Inter3d="clr-namespace:_3DTools;assembly=3DTools" >
Try it !