Asked by:
Using the ScrollViewer.HorizontalScrollBarVisibility & ScrollViewer.VerticalScrollBarVisibility Attached Properties

General discussion
-
I (and I'm sure many other developers) often require scrolling for certain parts of their apps. I have always used the ScrollViewer for this (since that's it's purpose), and it has worked fine, but it is also a pain to need to add it. I have never been exactly sure how to use the ScrollViewer.HorizontalScrollBarVisibility & ScrollViewer.VerticalScrollBarVisibility attached properties, so I have been procrastinating on figuring them out. After recently searching for a while, if I understood what I found correctly, these are used when there is an "implicit" ScrollViewer (one that is in the control's template). This kind of made since, but it did not quite make clear which controls that means. Attached properties like Grid.Column & Grid.Row are easy to know when to use, because you just look at whether they have a Grid as a parent, but a control's template is not as easy to find because they are not usually directly in your XAML (I do know where to find them, but it is a lot of extra work). I was hoping to find out if anybody knows of any good sites, blogs, or tutorials on using these attached properties and what controls they should be used with. It would also be nice to see some examples with the different applicable controls. Anybody know of any good sites, blogs, or tutorials for this? Thanks.
Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
Tuesday, January 27, 2015 3:05 AM
All replies
-
I (and I'm sure many other developers) often require scrolling for certain parts of their apps. I have always used the ScrollViewer for this (since that's it's purpose), and it has worked fine, but it is also a pain to need to add it. I have never been exactly sure how to use the ScrollViewer.HorizontalScrollBarVisibility & ScrollViewer.VerticalScrollBarVisibility attached properties, so I have been procrastinating on figuring them out. After recently searching for a while, if I understood what I found correctly, these are used when there is an "implicit" ScrollViewer (one that is in the control's template). This kind of made since, but it did not quite make clear which controls that means. Attached properties like Grid.Column & Grid.Row are easy to know when to use, because you just look at whether they have a Grid as a parent, but a control's template is not as easy to find because they are not usually directly in your XAML (I do know where to find them, but it is a lot of extra work). I was hoping to find out if anybody knows of any good sites, blogs, or tutorials on using these attached properties and what controls they should be used with. It would also be nice to see some examples with the different applicable controls. Anybody know of any good sites, blogs, or tutorials for this? Thanks.
Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
- Merged by Herro wongMicrosoft contingent staff, Moderator Wednesday, January 28, 2015 5:13 AM duplicate thread
Tuesday, January 27, 2015 3:05 AM -
See Blog here. http://blogs.msdn.com/.Wednesday, January 28, 2015 8:22 AM
-
That does not point to a specific blog, just the site. Can you tell me the page with the stuff I need? Thanks.
Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
Wednesday, January 28, 2015 5:10 PM