Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > General Discussions > Add a Setter on a native control style from themed by telerik

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

Feed from this thread
  • stephane avatar

    Posted on Jan 31, 2012 (permalink)

    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?

    Reply

  • stephane avatar

    Posted on Feb 6, 2012 (permalink)

    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?



    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > General Discussions > Add a Setter on a native control style from themed by telerik