Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
295
Databinding of ScrollPosition and ScrollScale
posted

Is databinding of the ScrollScale and ScrollPosition properties of the timeline axis supported? I am seeing strange behavior in my application where the ScrollScale binding seems to work, but ScrollPosition does only work intermittently, it just defaults to 0. Do these properties have to be set in a certain order? I set ScrollScale first and then ScrollPosition.

 

I am using the following XAML:

         <ig:XamTimeline.Axis>
           <ig:DateTimeAxis  
             ShowMajorGridLines="False" 
             ShowMajorTickMarks="True"  
             ShowMinorTickMarks="True"  
             ScrollPosition="{Binding Path=ZoomPosition, Mode=TwoWay}"
             ScrollScale="{Binding Path=ZoomScale, Mode=TwoWay}"
             ThumbStyle="{StaticResource AxisThumbStyle}" />
        </ig:XamTimeline.Axis>

ZoomPosition and ZoomScale are of type "double".
Parents
No Data
Reply
  • 14517
    Offline posted

    Hello,

    It does appear that if ScrollPosition is set first the initial binding does not pick up the value until it is changed, however if ScrollPosition is set after ScrollScale then it picks up the ScrollPosition. I am going to have development take a look at this.

    Valerie

Children
No Data