Given a ZoomContentControl with virtual space enabled, I'd like to calculate the x-coordinates of where the content intersects with the left & right edges of the viewport. Or put another way, the "bounds" of the content that's actually visible as you zoom & drag around.
My first thought was to bind CenterPoint & ZoomLevel as OneWayToSource, & calculate there - but that requires knowing ViewportSize, which is read-only and thus cannot be bound to the ViewModel. As a result, I wasn't able to figure out any way to get that information without breaking MVVM.
Is there a better/easier way to calculate the visible bounds of the contents (without breaking MVVM)?
Note: I'm using 2017.1.650.0 (not available in the Product version dropdown above).
Thanks in advance :)