New to Telerik UI for WPFStart a free 30-day trial

Contains attached behavior for enabling mouse wheel scrolling for ScrollViewer controls.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public static class ScrollViewerExtensions

Inheritance: objectScrollViewerExtensions

Fields

DependencyProperty identifying the AttachedHorizontalScrollBar attached property.

C#
public static readonly DependencyProperty AttachedHorizontalScrollBarProperty

DependencyProperty identifying the AttachedVerticalScrollBar attached property.

C#
public static readonly DependencyProperty AttachedVerticalScrollBarProperty

Methods

Sets the attached external Horizontal ScrollBar to a ScrollViewer.

C#
public static ScrollBar GetAttachedHorizontalScrollBar(DependencyObject obj)
Parameters:objDependencyObject

The ScrollViewer.

Returns:

ScrollBar

The ScrollBar instance.

Sets the attached external Vertical ScrollBar to a ScrollViewer.

C#
public static ScrollBar GetAttachedVerticalScrollBar(DependencyObject obj)
Parameters:objDependencyObject

The ScrollViewer.

Returns:

ScrollBar

The ScrollBar instance.

Gets the attached external Horizontal ScrollBar to a ScrollViewer.

C#
public static void SetAttachedHorizontalScrollBar(DependencyObject obj, ScrollBar value)
Parameters:objDependencyObject

The ScrollViewer.

valueScrollBar

The ScrollBar instance.

Gets the attached external Vertical ScrollBar to a ScrollViewer.

C#
public static void SetAttachedVerticalScrollBar(DependencyObject obj, ScrollBar value)
Parameters:objDependencyObject

The ScrollViewer.

valueScrollBar

The ScrollBar instance.