Zoom & Scroll a Grid with XAML

njsokalski

Well-known member
Joined
Mar 16, 2011
Messages
102
Programming Experience
5-10
I have a 9x9 Grid which contains squares that I want the user to be able to tap. However, having a 9 columns on a screen that is only 480 pixels wide makes the squares borderline for tapping size, making it easy to tap the wrong one. Although this is not something the user can just tap another one to switch, this could easily get frustrating for the user. My solution is to have buttons on the ApplicationBar allowing the user to switch between Zoomed In and Fit To Screen views. In the Zoomed In view, the Grid will be enlarged (my best guess to do this would be the ScaleTransform, but this seems to have the problem of the layout size it sends to it's parent, but I'm somewhat new to XAML, so I could be wrong) and the user will be able to scroll/pan the Grid to see different areas of it (I'm assuming using a ScrollViewer control). Can anybody tell me how I might be able to do this? Thanks.
 
Back
Top