ScrollViewer | 141
Controls
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
RepeatButton
Hierarchy: UIElement FrameworkElement Control ContentControl ButtonBase
<RepeatButton
Delay="500"
Interval="100"
Click="ClickHandler"
Content="Increment Counter" />
<RepeatButton .../> is a button that continually raises its Click event until it is
released. The interval between
Click events is controlled through the event’s proper-
ties.
RepeatButton is used to implement the composite components HorizontalSlider
and VerticalSlider.
Attributes
Click (optional)
This attribute sets the name of the
codebehind handler that executes when the
RepeatButton is clicked.
Content (optional)
This attribute’s value will be displayed as the
RepeatButton label.
Delay (optional)
This attribute sets the amount of time, in milliseconds, that the
RepeatButton
waits before it starts repeating. This value must be a non-negative Integer.
Interval (optional)
This attribute sets the amount of time, in milliseconds, between repeats. This
value must be a non-negative
Integer.
Events
Click
ScrollViewer
Hierarchy: UIElement FrameworkElement Control ContentControl
ScrollViewer
HorizontalScrollBarVisibility="Auto|Visible|Hidden|Disabled"
VerticalScrollBarVisibility=" Auto|Visible|Hidden|Disabled"
ScrollChanged="ScrollChangedHandler"
CanContentScroll="true|false" >
...
</ScrollViewer>
<ScrollViewer .../> represents a scrollable area that contains other visible elements.
The visible area of the content is called the viewport. The viewport for the
ScrollViewer
is defined by the Height and Width properties.

Get XAML in a Nutshell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.