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

Add a Setter on a native control style from themed by telerik

1 Answer 36 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
stephane
Top achievements
Rank 1
stephane asked on 31 Jan 2012, 03:10 PM
We use telerik themes.
I would like to add a setter to the ScrollViewer Style, but keep the telerik style too.
What is the simplest way to achieve this?
I tried the following without success : 

<Style TargetType="ScrollViewer">
        <Setter Property="Padding" Value="20" />
</Style>

Any easy way?

1 Answer, 1 is accepted

Sort by
0
stephane
Top achievements
Rank 1
answered on 06 Feb 2012, 03:16 PM
Maybe some more details?

The scrollviewer doesn't allow mouse wheel scroll on MacOs + Firefox.
We have found that enabling the telerik attached property ScrollViewerExtensions.EnableMouseWheel and setting explicitely windowless=true on the silverlight object tag was enabling mousewheel scrolling

However, we can't seem to set this attached property at the Style level.
It also seems that the order at which we set the property on the scrollviewer matters. when setting the EnableMouseWheel before any other, we dont get any problem and scroll works, if we set it further down the list of properties of the scrollviewer (in xaml), the mousewheel won't work.

Any feedback about this? ANY?



Tags
General Discussions
Asked by
stephane
Top achievements
Rank 1
Answers by
stephane
Top achievements
Rank 1
Share this question
or