Include Adorner in ScrollViewer

I currently have it Adorner

inside ScrollViewer

. Objects at the bottom of the scrollviewer can sometimes display a large adorner below them. Unfortunately this adorner is not included in the ExtentHeight

scrollviewer, so the bottom of the adorner is clipped to the bottom of the scrollviewer.

Is there a way for the content of the adorner layer to be included in the scrollviewer's scroll area?

+3


source to share


1 answer


I'm afraid the consensus from other sources and hours of investigation seems to be that what I was talking about simply is not possible. My solution was to just detect the last item in my ListBox and automatically add margin to the bottom of it when my Adorner is displayed. This is a bit of a hack, but it achieves the desired behavior mentioned above.



+1


source







All Articles