We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Are there any OnLoad/OnAnimationDone events that can be bound to?

Thread ID:





132980 Oct 2,2017 05:02 PM UTC Oct 3,2017 10:54 AM UTC Xamarin.iOS 1
Tags: SfChart
Jeremy Iamurri
Asked On October 2, 2017 05:02 PM UTC

I'd like to react to some charts finishing their animations with either an event or a callback.

Is there anything like this already available in Syncfusion for Xamarin.iOS?

Parthiban Sundaram [Syncfusion]
Replied On October 3, 2017 10:54 AM UTC

Hi Jeremy, 
Thanks for using Syncfusion products. 
You can achieve this requirement by inheriting chart segment class and overriding the AnimationStopped method. Please refer the following code snippet for more details. 
Code Snippet: 
    public class ColumnSegmentExt : SFColumnSegment 
         //This method will call for every segment creation 
        public override void AnimationStopped(CoreAnimation.CAAnimation anim, bool finished) 
            if(Series.Segments.Last() == this) // condition for animation end 
              //do your stuff 
            base.AnimationStopped(anim, finished); // Must call base to avoid the memory leak 
To render the inherited segment to series. 
    public class ColumnSeriesExt : SFColumnSeries 
        protected override SFChartSegment CreateSegment() 
            return new ColumnSegmentExt(); 
Please download the sample from following location. 
Please let us know, if you need further assistance on this.  
Parthiban S  


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon