View Issue Details

IDProjectCategoryView StatusLast Update
0002400NoesisGUIUnity3Dpublic2022-08-22 17:46
ReporterJinFox Assigned Tosfernandez  
Status resolvedResolutionfixed 
Product Version3.1.2 
Target Version3.1.6Fixed in Version3.1.6 
Summary0002400: ScrollViewer doesnt apply panningMode when applied with style
It would seem that some of the scrollviewer I am using in my game are not working with touch unless I specifically add "PanningMode="VerticalOnly"" directly inline. The property, if set in a declared Style is not applied.

This issue doesn't seem to reproduce on simple scenario but only in more complex Visual trees. After a discussion with Sergio, he emitted the hypothesis that the ScrollViewer using template binding to inherit from higher member of the hierarchy might be applied even if the style isn't default value, overriding any value put in the style of the scrollviewer.

Thanks very much for your help!
Steps To Reproduce1- Have a ScrollViewer with a style, for example :
  <Style x:Key="" TargetType="{x:Type ScrollViewer}" BasedOn="{StaticResource {x:Type ScrollViewer}}">
        <Setter Property="CanContentScroll" Value="False"/>
        <Setter Property="PanningMode" Value="VerticalOnly"/>
        <Setter Property="IsManipulationEnabled" Value="True"/>
        <Setter Property="HorizontalScrollBarVisibility" Value="Disabled"/>

2 - Include this scrollviewer with a style in a visual tree where a value that can be inherited from
3 - watch which value is applied with the Noesis Inspector?
This might not be reproducible on simple visual tree architecture

TagsNo tags attached.


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2022-08-19 12:04 JinFox New Issue
2022-08-19 14:25 jsantos Assigned To => sfernandez
2022-08-19 14:25 jsantos Status new => assigned
2022-08-19 14:25 jsantos Target Version => 3.1.6
2022-08-22 17:46 sfernandez Status assigned => resolved
2022-08-22 17:46 sfernandez Resolution open => fixed
2022-08-22 17:46 sfernandez Fixed in Version => 3.1.6