I am trying to create a canvas with scroll bars.
Can anyone help me give some ideas on how to do this?
I have already tried using grid of 1 row and 1 column but due to certain constraints I want to use canvas.
Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could put the canvas inside of a scrollviewer. I tried this quick test and it allowed me to scroll through the contents of the canvas.
edit: Here is an example where the scroll-bars show up only when needed, and it changes dynamically as the canvas size changes.
Changing canvas size with button click:
In this example, I start out with no scroll-bars and when I click the button to expand the canvas, scroll-bars appear.