This is a migrated thread and some comments may be shown as answers.

ScrollBar width/height

3 Answers 252 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rieni De Rijke
Top achievements
Rank 1
Rieni De Rijke asked on 21 Oct 2010, 09:33 AM
In our application we need all the space we can get.
That's why we want to minimize the width and/or height of all our scrollbars.
In an resource-file we wrote this:

<Style  TargetType="{x:Type ScrollBar}">
        <Setter Property="Stylus.IsFlicksEnabled" Value="false" />        
        <Style.Triggers>
            <Trigger Property="Orientation" Value="Horizontal">
                <Setter Property="Width" Value="Auto"/>
                <Setter Property="MaxHeight" Value="10" />
                <Setter Property="MinHeight" Value="10" />
            </Trigger>
            <Trigger Property="Orientation" Value="Vertical">
                <Setter Property="Height" Value="Auto" />
                <Setter Property="MaxWidth" Value="10"/>
                <Setter Property="MinWidth" Value="10"/>                
            </Trigger>
        </Style.Triggers>
    </Style>

This works fine for all scrollbars in the application. Also for the Telerik-scrollbars.
However...
The RadGridView-scrollbars width or height are being changed because of the new style,
but the inner buttons: the thumb and the repeatbuttons are no longer in the center of the scrollbar. 
We use your Telerik-themes.
What is the best way to change the width/height of your scrollbars (but not loozing the telerik-theme-style) ?

3 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 22 Oct 2010, 11:27 AM
Hi Rieni,

Can you try to edit the template of GridViewScrollViewer and modify the Thumbs and Scrollbars from there. Please try this one and let me know how it goes.

Kind regards,
Vanya Pavlova
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Rieni De Rijke
Top achievements
Rank 1
answered on 05 Nov 2010, 10:03 AM
We tried to modify the Thumbs and Scrollbars of the GridViewScrollViewer.
But I think we need a little example to start with. 
Where could we find such an example?





0
Vanya Pavlova
Telerik team
answered on 10 Nov 2010, 09:25 AM
Hi Rieni,

Please see the following forum thread where you can find a screencast, that demonstrates how to access and modify the GridViewSrollViewer.

Sincerely yours,
Vanya Pavlova
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Rieni De Rijke
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Rieni De Rijke
Top achievements
Rank 1
Share this question
or