Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • I can style Windows scrollbars by adding the following to my Application.Resources, however, it does not affect DevExpress scrollbars. How to do this for the GridControl? Is there a way to do it globally?

                                             <Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
                                                <Style.Triggers>
                                                   <Trigger Property="Orientation" Value="Horizontal">
                                                      <Setter Property="Height" Value="48" />
                                                   </Trigger>
                                                   <Trigger Property="Orientation" Value="Vertical">
                                                      <Setter Property="Width" Value="48" />
                                                   </Trigger>
                                                </Style.Triggers>
                                             </Style>

                                    Thanks,
                                    -Chris

                                0

                                Hello Chris,

                                Thank you for the question. It seems we already answered a similar one. Please refer to the Azure Scrollbar custon theme issue and let me know your results.

                                Thank you, Marina

                                0

                                While this does improve the appearance of scrollbars on normal items (i.e. ScrollViewer wrapped items), it does not change the scrollbar on the GridControl, it still has a very narrow scroll area to the right of the grid.

                                0

                                Hello Chris,

                                Thank you for the clarification. I suggest that you override some our style for the scroll bar. I've attached a small sample for you. Let me know if you need further assistance.

                                Thank you, Marina

                                0

                                Wow that's a lot of code (gotta love WPF). It's still not working for me when I define the resources it in my app-level resources. This is probably because the control that I want to affect is in a referenced assembly. I'm reluctant to place the resource definitions in the shared assembly though because varoius comonents are used in other apps (where I don't want to override the default style/template).

                                Thoughts on how I can parameterize this so that I can apply the scrollbar style to a GridControl on a case-by-case basis?

                                0

                                Hello Chris,

                                Thank you for the feedback. Could you please attach a sample that illustrates that my solution does not work? I am not sure what internal structure you mean. We will research your solution, and will try to suggest the best solution.

                                Thank you, Marina

                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners