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
20
Reg: Motion framework
posted

Can anyone help me by showing a simple example how to use the motion framework? which they have newly introduced...

 

Will be of gr8 help

Thanks in advance

 

Parents
No Data
Reply
  • 30692
    Suggested Answer
    Offline posted

    Hi,

    I believe some sample code will be released with the upcoming service release of the product which contains some changes to improve these features.

    But here is a breakdown as to what is required.

    • For the series you want to automatically animate, set the TransitionDuration property to the timespan that you want it to take points to adjust from their previous values to their next values when changed. For example, .5 seconds.
    • You may also set the TransitionEasingFunction property on a series to have the animation use a different easing method other than linear.
    • Make sure that your data "notifies" the chart when it changes. For example, if your items bound to the chart implement INotifyPropertyChanged, then modifying one of their properties will notify the chart, and the change will be animated. For a collection, if it implements INotifyCollectionChanged, then additions, removals, and changes to the collection will also be animated.

    Limitations in the current version:

    • If the range of an axis changes as a result of a data change, no animation will begin.
    • If two things request the chart to animate in the same threaded interaction, no animation will occur (This is resolved in the upcoming service release).

    Because of the second limitation, until the service release is available, you should avoid changing two things in one interaction if you want it to animate. If you run into this situation, I can show you some work arounds, but the issue should no longer be a problem in the soon to be released SR.

    -Graham

Children