ScrollViewHelper Class
ScrollView helper attached property class. This class provides an attached property that allows for ItemsControls to scroll correctly via PageUp/PageDown requests when they are hosted in a TeamExplorer page.
Prior/Next keyboard events are intercepted and re-routed to the parent ScrollViewer. After the scroll position has changed the ItemsControl's focus element is updated to the first visible element.
Inheritance Hierarchy
System.Object
Microsoft.TeamFoundation.Controls.WPF.ScrollViewHelper
Namespace: Microsoft.TeamFoundation.Controls.WPF
Assembly: Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public NotInheritable Class ScrollViewHelper
public static class ScrollViewHelper
[ExtensionAttribute]
public ref class ScrollViewHelper abstract sealed
[<AbstractClass>]
[<Sealed>]
type ScrollViewHelper = class end
public final class ScrollViewHelper
The ScrollViewHelper type exposes the following members.
Attached Properties
Name | Description | |
---|---|---|
BindWidthToViewport | ||
ReroutePriorAndNext | ||
UseSystemMouseWheelLineSettings |
Top
Methods
Name | Description | |
---|---|---|
GetBindWidthToViewport | BindWidthToViewport getter. | |
GetReroutePriorAndNext | ReroutePriorAndNext getter. | |
GetUseSystemMouseWheelLineSettings | Get the UseSystemMouseWheelLineSettings value. | |
SetBindWidthToViewport | BindWidthToViewport setter. | |
SetReroutePriorAndNext | ReroutePriorAndNext setter. | |
SetUseSystemMouseWheelLineSettings | Set the UseSystemMouseWheelLineSettings value. ScrollViewer does not understand the concept of lines because it contains arbitrary UI. Therefore, ScrollViewer does not obey the system mouse wheel scroll lines setting, which defaults to 3. Instead, the ScrollViewer treats a mouse wheel scroll increment as the equivalent of three taps of the inner scrollbar's arrow. Set this property to true to have the attached ScrollViewer obey the system mouse wheel scroll lines setting. It will scroll the equivalent of clicking the scrollbar arrow N times, where N is the system mouse wheel scroll lines setting. |
Top
Fields
Name | Description | |
---|---|---|
BindWidthToViewportProperty | BindWidthToViewport attached property. | |
ReroutePriorAndNextProperty | ReroutePriorAndNext attached property. | |
UseSystemMouseWheelLineSettingsProperty | UseSystemMouseWheelLineSettings attached property. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.