)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set the Scroll Indicator Mode for ScrollViewer same as that of SfDataGrid when using touch and mouse interactions?

Platform: WPF |
Control: SfDataGrid |
Published Date: May 27, 2015 |
Last Revised Date: May 27, 2015

In WinRT, the Scroll Indicator Mode of ScrollViewer, that is, the size of the ScrollBar, differs while scrolling by touch or by mouse and it is the default behavior of ScrollViewer. You can see the same behavior in SfDataGrid while scrolling. By default, ScrollViewer contains separate VisualStates for touch and mouse to set the ScrollingIndicatorMode.

It is possible to change the scroll indicator the same way, when using touch or mouse, by customizing the default template of ScrollViewer as shown in the following code example.

XAML

In the above code example, ScrollingIndicatorMode is set as TouchIndicator for mouse interactions.

You can refer to the following sample link for customizing scroll indicator mode of ScrollViewer in SfDataGrid for both touch and mouse interactions.

Sample Link for WinRT: http://www.syncfusion.com/downloads/support/forum/119148/WinRT1866015514.zip

2X faster development

The ultimate WPF UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon