How to Scroll a Viewport
#2
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.
Andrej Benedik
  


Messages In This Thread
How to Scroll a Viewport - by HelloSupport - 04-11-2020, 12:24 AM
RE: How to Scroll a Viewport - by abenedik - 04-14-2020, 10:01 AM
RE: How to Scroll a Viewport - by HelloSupport - 04-20-2020, 01:24 AM
RE: How to Scroll a Viewport - by abenedik - 04-20-2020, 10:22 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)