Class ScrollViewerExtensions
Contains attached behavior for enabling mouse wheel scrolling for ScrollViewer controls.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public static class ScrollViewerExtensions : Object
Fields
AttachedHorizontalScrollBarProperty
DependencyProperty identifying the AttachedHorizontalScrollBar attached property.
Declaration
public static readonly DependencyProperty AttachedHorizontalScrollBarProperty
Field Value
System.Windows.DependencyProperty
|
AttachedVerticalScrollBarProperty
DependencyProperty identifying the AttachedVerticalScrollBar attached property.
Declaration
public static readonly DependencyProperty AttachedVerticalScrollBarProperty
Field Value
System.Windows.DependencyProperty
|
EnableMouseWheelProperty
Identifies the EnableMouseWheel dependency property.
Declaration
public static readonly DependencyProperty EnableMouseWheelProperty
Field Value
System.Windows.DependencyProperty
|
Methods
GetAttachedHorizontalScrollBar(DependencyObject)
Sets the attached external Horizontal ScrollBar to a ScrollViewer.
Declaration
public static ScrollBar GetAttachedHorizontalScrollBar(DependencyObject obj)
Parameters
System.Windows.DependencyObject
obj
The ScrollViewer. |
Returns
System.Windows.Controls.Primitives.ScrollBar
The ScrollBar instance. |
GetAttachedVerticalScrollBar(DependencyObject)
Sets the attached external Vertical ScrollBar to a ScrollViewer.
Declaration
public static ScrollBar GetAttachedVerticalScrollBar(DependencyObject obj)
Parameters
System.Windows.DependencyObject
obj
The ScrollViewer. |
Returns
System.Windows.Controls.Primitives.ScrollBar
The ScrollBar instance. |
GetEnableMouseWheel(DependencyObject)
Gets whether the mouse wheel scrolling is enabled for the specified ScrollViewer.
Declaration
public static bool GetEnableMouseWheel(DependencyObject obj)
Parameters
System.Windows.DependencyObject
obj
The DependencyObject from which to read the property value. |
Returns
System.Boolean
True if the mouse wheel scrolling is enabled for the specified ScrollViewer, otherwise false. |
SetAttachedHorizontalScrollBar(DependencyObject, ScrollBar)
Gets the attached external Horizontal ScrollBar to a ScrollViewer.
Declaration
public static void SetAttachedHorizontalScrollBar(DependencyObject obj, ScrollBar value)
Parameters
System.Windows.DependencyObject
obj
The ScrollViewer. |
System.Windows.Controls.Primitives.ScrollBar
value
The ScrollBar instance. |
SetAttachedVerticalScrollBar(DependencyObject, ScrollBar)
Gets the attached external Vertical ScrollBar to a ScrollViewer.
Declaration
public static void SetAttachedVerticalScrollBar(DependencyObject obj, ScrollBar value)
Parameters
System.Windows.DependencyObject
obj
The ScrollViewer. |
System.Windows.Controls.Primitives.ScrollBar
value
The ScrollBar instance. |
SetEnableMouseWheel(DependencyObject, Boolean)
Sets the value determining whether the mouse wheel scrolling is enabled for the specified ScrollViewer.
Declaration
public static void SetEnableMouseWheel(DependencyObject obj, bool value)
Parameters
System.Windows.DependencyObject
obj
The DependencyObject on which to set the property value. |
System.Boolean
value
True if the mouse wheel scrolling should be enabled, otherwise False. |