IXRScrollBar (Windows Embedded CE 6.0)
1/6/2010
This class represents a control that provides a scrollbar that has a sliding thumb whose position corresponds to a value.
Syntax
class IXRScrollBar : public IXRRangeBase
Methods
Method | Description |
---|---|
Attaches a delegate to the Scroll event for this scrollbar. When the Scroll event is raised by this scrollbar, this delegate will be invoked. |
|
Retrieves whether this scrollbar is displayed horizontally or vertically. |
|
Retrieves how much of the scrollable content is currently visible. |
|
Removes a delegate from the Scroll event for this scrollbar. |
|
Sets whether this scrollbar is displayed horizontally or vertically. |
|
Sets how much of the scrollable content is currently visible. |
Remarks
The IXRScrollBar control consists of an IXRThumb control and two IXRRepeatButton controls. A user can increase and decrease the value of the IXRScrollBar control by pressing the IXRRepeatButton controls, or by moving the IXRThumb. The default range of values inherited from IXRRangeBase is from 0 to 10. The Value property inherited from IXRRangeBase represents the linear distance of the thumb between the endpoints of the IXRScrollbar. You can change the default range of values by calling IXRRangeBase::SetMinimum and IXRRangeBase::SetMaximum. To determine whether this IXRScrollBar is displayed horizontally or vertically, use IXRScrollBar::GetOrientation and IXRScrollBar::SetOrientation.
The scroll track in an IXRScrollBar is oriented so that values increase from top to bottom for a vertical scrollbar or from left to right for a horizontal scrollbar.
You can also define a scrollbar control in Microsoft Silverlight 2 XAML. For information about the differences between XAML in Silverlight for Windows Embedded and Silverlight 2, see Differences Between Silverlight for the Web and Silverlight for Windows Embedded. For more information about how to define this element in the source XAML for your application, see this Microsoft Web site.
Inheritance Hierarchy
IXRScrollBar
.NET Framework Equivalent
System.Windows.Controls.Primitives.ScrollBar
Requirements
Header | XamlRuntime.h |
sysgen | SYSGEN_XAML_RUNTIME |
Windows Embedded CE | Windows Embedded CE 6.0 R3 |