In https://www.ab4d.com/help/PowerToys/html...itions.htm
...it shows how to bind mouse movements to camera movements but I can't seem to get it to work. I have . . .
... and nothing happens when I press the right mouse button or the right mouse button plus the Alt key and move the mouse. (I'm using the left mouse button for something else, but if I comment that out and set the XAML to use the left mouse button instead, it still doesn't work.)
This code is very similar to the PolyLinesSample, which builds and works fine on the same PC.
I also tried adding to the MouseCameraController . . .
...or...
... just because they're in your Polyline example, but I don't really understand it and neither one helped.
Do you have any suggestions on what I'm doing wrong or how to debug this? Thanks in advance!
...it shows how to bind mouse movements to camera movements but I can't seem to get it to work. I have . . .
Code:
<cameras:TargetPositionCamera Name="Camera1"
Heading="0" Attitude="0" Bank="0" TargetPosition="0 0 0"
CameraType="OrthographicCamera"
CameraWidth="936"
ShowCameraLight="Always"
TargetViewport3D="{Binding ElementName=MainViewport}"/>
<ab3d:MouseCameraController Name="MouseCameraController1"
RotateCameraConditions="RightMouseButtonPressed"
MoveCameraConditions="RightMouseButtonPressed, AltKey"
TargetCamera="{Binding ElementName=Camera1}"/>
... and nothing happens when I press the right mouse button or the right mouse button plus the Alt key and move the mouse. (I'm using the left mouse button for something else, but if I comment that out and set the XAML to use the left mouse button instead, it still doesn't work.)
This code is very similar to the PolyLinesSample, which builds and works fine on the same PC.
I also tried adding to the MouseCameraController . . .
Code:
EventsSourceElement="{Binding ElementName=MainViewport}"
Code:
EventsSourceElement="{Binding ElementName=ViewportBorder}"
... just because they're in your Polyline example, but I don't really understand it and neither one helped.
Do you have any suggestions on what I'm doing wrong or how to debug this? Thanks in advance!