XAML: make a ScrollViewer show scrollbars when the ScaleTransform of a child object gets big
Posted
by skb
on Stack Overflow
See other posts from Stack Overflow
or by skb
Published on 2010-03-06T22:51:20Z
Indexed on
2010/03/09
6:21 UTC
Read the original article
Hit count: 878
Hi. I am making a sort of "print preview" control for some documents in my Silverlight 3 application. I have a Canvas (for showing the document) inside of a ScrollViewer, and I have zoom in / zoom out buttons that control the X and Y Scale properties of the ScaleTransform for the Canvas.RenderTransform property. I want the scrollbars of the ScrollViewer to show up when I "zoom in" enough such that the canvas is no longer visible in the ScrollViewer area, but it seems that they only show up depending on the Width/Height of the Canvas itself, regardless of whether it is zoomed in or not.
Can anyone help?
© Stack Overflow or respective owner