I’m trying to get the maximum amount a scrollviewer can scroll in the vertical and horizontal direction but I need to be doing this in a layout updated callback. This is what I’m currently doing:
viewer.ScrollToRight( );
doublehmax = viewer.HorizontalOffset;
viewer.ScrollToBottom( );
double vmax = viewer.VerticalOffset;
But this casues an error: “Unhandled Error in Silverlight 2 Application Layout cycle detected. Layout could not complete.”
Is there a way I can get the max horizontal and vertical offsets of the scroll view area reliably even after window resizes and the like?
use
ScrollableWidthandScrollableheight