We have a Canvas
control that we have set to be very large such that when a user pans or zooms around they (very rarely) see the edge of the control.
This poses a number of issues. Firstly we have to render a very large surface with a lot going on which makes things slow. It also means a user could still accidentally "fall off" the edge of the ground plane.
I have tried creating any paths using StreamGeometries
to make things faster and, where I can, I have frozen assets and set various objects to IsHitTestVisible = false
. These have helped matters but at the end of the day we are still drawing a massive Canvas
and WPF doesnt seem to be doing anything clever given the viewport
Can anyone offer some advice?