Page view counter
[ScrollContentPresenter] , [ScrollViewer], [ScrollBar] significance? Subscribe to this thread
Last post 09-24-2008 7:26 AM by surbhiydv. 2 replies.
Sort Posts:
09-04-2008 1:58 AM
[ScrollContentPresenter] , [ScrollViewer], [ScrollBar] significance?

Hello!

I am Working on silverlight and I want to know the exact significance and usage of these three component :

[ScrollContentPresenter] , [ScrollViewer], [ScrollBar]

I want to know the Exact area of use, diffrence among thses three and How to use these component  in a project. Means the proper significance of these controls.

Thanks in Advance

 

Abhishek Goel

Abhi319

Loading...
Joined on 05-08-2008
India
Posts 52
09-04-2008 2:39 AM
Re: [ScrollContentPresenter] , [ScrollViewer], [ScrollBar] significance?

Hi,

ScrollContentPresenter: Displays the content of a ScrollViewer control. See MSDN: http://msdn.microsoft.com/en-us/library/system.windows.controls.scrollcontentpresenter(VS.95).aspx

ScrollViewer: Represents a scrollable area that can contain other visible elements. See MSDN: http://msdn.microsoft.com/en-us/library/system.windows.controls.scrollviewer(VS.95).aspx

ScrollBar: Represents a control that provides a scroll bar that has a sliding Thumb whose position corresponds to a value. See MSDN: http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.scrollbar(VS.95).aspx

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Best Regards,
SilverlightShow Team,
www.SilverlightShow.net - news, articles, tips, examples, books

SilverlightShow

Loading...
Joined on 06-24-2008
Sofia, Bulgaria
Posts 193
09-24-2008 7:26 AM
Re: [ScrollContentPresenter] , [ScrollViewer], [ScrollBar] significance?

Hi Abhi

-------------"The ScrollBar control provides a flexible implementation of a scrollbar that you can use for any number of purposes, not just scrolling content. In essence, it is Slider control with RepeatButtons automatically rendered on either end of the track.

The ScrollViewer, is more focused on delivering support for scrolling content. It is actually composed with ScrollBar controls internally, so it is not adding any new scrolling features that the ScrollBar doesn't offer. In fact, the ScrollViewer loses a few important features, like the ScrollBar's usefull Scroll event.

ScrollBar exposes a few important properties that enable you to control scrolling behavior. The properties are very similar to those on the Slider control, such as Maximum, Minimum, LargeChange, SmallChange, and Orientation. The size of ScrollBar steps when clicked (large steps occur when the track is clicked, small steps when the buttons are clicked), and the Horizontal or Vertical orientation of the ScrollBar. ViewportSize property allows you to tell the ScrollBar how much of the scrollable "content" is visible so that the "thumb" can be sized appropriately. The larger that you make the ViewportSize value, the wider the thumb will be.

The ScrollBar also exposes two helpful events: OnScroll and OnValueChanged. Both of these events allow you to respond to user interaction with the ScrollBar and both are missing in the ScrollViewer control by default."-----------------

 

hope the above information will help you.

(Please 'Mark as Answer'................if it helps you)

surbhiydv

Loading...
Joined on 08-18-2008
India
Posts 218
Microsoft Communities