ScrollViewHelper 类

ScrollView帮助器附加属性类。此选件类提供允许ItemsControls通过PageUp/PageDown请求完全移动的附加属性,并在TeamExplorer页时承载。

预先/键盘事件随后将截获并重新路由到父ScrollViewer。在滚动位置更改后ItemsControl的焦点元素会更新到第一个可视元素。

继承层次结构

System.Object
  Microsoft.TeamFoundation.Controls.WPF.ScrollViewHelper

命名空间:  Microsoft.TeamFoundation.Controls.WPF
程序集:  Microsoft.TeamFoundation.Controls(在 Microsoft.TeamFoundation.Controls.dll 中)

语法

声明
<ExtensionAttribute> _
Public NotInheritable Class ScrollViewHelper
public static class ScrollViewHelper

ScrollViewHelper 类型公开以下成员。

附加属性

  名称 说明
公共附加属性 BindWidthToViewport
公共附加属性 ReroutePriorAndNext
公共附加属性 UseSystemMouseWheelLineSettings

页首

方法

  名称 说明
公共方法静态成员 GetBindWidthToViewport BindWidthToViewport getter方法。
公共方法静态成员 GetReroutePriorAndNext ReroutePriorAndNext getter方法。
公共方法静态成员 GetUseSystemMouseWheelLineSettings 获取UseSystemMouseWheelLineSettings值。
公共方法静态成员 PageDown
公共方法静态成员 PageUp
公共方法静态成员 SetBindWidthToViewport BindWidthToViewport setter。
公共方法静态成员 SetReroutePriorAndNext ReroutePriorAndNext setter。
公共方法静态成员 SetUseSystemMouseWheelLineSettings 设置UseSystemMouseWheelLineSettings值。因为它包含任意UI,ScrollViewer不了解行的概念。因此,ScrollViewer不遵从设置系统鼠标滚轮滚动的行,默认为3。 相反,ScrollViewer将鼠标滚轮滚动增量用作内部滚动条箭头的三分接头等效。将此属性设置为true允许附加ScrollViewer遵循系统鼠标滚轮滚动行设置。它将移动单击滚动条箭头N纪元等效,其中N是系统鼠标滚轮滚动行设置。

页首

字段

  名称 说明
公共字段静态成员 BindWidthToViewportProperty BindWidthToViewport附加属性。
公共字段静态成员 ReroutePriorAndNextProperty ReroutePriorAndNext附加属性。
公共字段静态成员 UseSystemMouseWheelLineSettingsProperty UseSystemMouseWheelLineSettings附加属性。

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.TeamFoundation.Controls.WPF 命名空间