04-14-2020, 10:01 AM
To use ScrollViewer with Viewport3D you need to set the Width and Height of the Viewport3D to fixed values.
But I would strongly advise you not to use ScrollViewer on Viewport3D - the 3D world is not a 2D canvas with its limits - you can rotate the camera around and come and if you rotate to the right you come to the initial view. I have never seen a 3D application that would have scroll viewers on the 3D views.
An exception to the above would be if you use 3D scene to render 2D lines - for example with using Ab3d.DXEngine that can render millions of lines and with using a top-down Orthographic camera to make an impression of a 2D view. There it would be possible to define a limited 2D area where the user would be able to navigate.
But I would strongly advise you not to use ScrollViewer on Viewport3D - the 3D world is not a 2D canvas with its limits - you can rotate the camera around and come and if you rotate to the right you come to the initial view. I have never seen a 3D application that would have scroll viewers on the 3D views.
An exception to the above would be if you use 3D scene to render 2D lines - for example with using Ab3d.DXEngine that can render millions of lines and with using a top-down Orthographic camera to make an impression of a 2D view. There it would be possible to define a limited 2D area where the user would be able to navigate.
Andrej Benedik

