ScrollViewHelper.SetUseSystemMouseWheelLineSettings Method
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.
Namespace: Microsoft.TeamFoundation.Controls.WPF
Assembly: Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)
Syntax
'Declaration
Public Shared Sub SetUseSystemMouseWheelLineSettings ( _
obj As ScrollViewer, _
value As Boolean _
)
public static void SetUseSystemMouseWheelLineSettings(
ScrollViewer obj,
bool value
)
public:
static void SetUseSystemMouseWheelLineSettings(
ScrollViewer^ obj,
bool value
)
static member SetUseSystemMouseWheelLineSettings :
obj:ScrollViewer *
value:bool -> unit
public static function SetUseSystemMouseWheelLineSettings(
obj : ScrollViewer,
value : boolean
)
Parameters
- obj
Type: System.Windows.Controls.ScrollViewer
- value
Type: System.Boolean
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.