sync the cameras of different HelixViewport3Ds

Dec 19, 2012 at 8:49 AM

I'm designing a UI where i want to exclude a couple of Visual3Ds from hit - testing.

So I thought it would probably be a good idea to use two overlapping HelixViewport3Ds and set IsHitTestVisible to false on one of them to exclude those Visual3Ds from hit-testing.

Now, how do i sync the cameras of those two HelixViewport3Ds so when i pan/zoom/... the first one the second one stays in snyc?

Or is there a better approach to this problem?

Dec 19, 2012 at 9:14 AM

ok. the trick was to do two-way bindings. sorry.


<PerspectiveCamera LookDirection="{Binding ElementName=boardView, Path=Camera.LookDirection, Mode=TwoWay}"  Position="{Binding ElementName=boardView, Path=Camera.Position, Mode=TwoWay}" UpDirection="{Binding ElementName=boardView, Path=Camera.UpDirection, Mode=TwoWay}"/>

Dec 19, 2012 at 9:24 AM

the Viewports still have a slight offset ... weird.

Dec 19, 2012 at 9:27 AM

Did you try using UIElement3Ds

Dec 19, 2012 at 10:03 AM

thanks for pointing me in the right direction!!!