Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1690

Summary: Xamarin.IOS and Xamarin.Forms.iOS Chart events now implement an EventHandler<NSSet>
Product: .NET TeeChart Reporter: pep jorge <pep>
Component: Xamarin.FormsAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description pep jorge 2016-11-17 06:29:56 EST
Xamarin.IOS and Xamarin.Forms.iOS Chart events now implement an EventHandler<NSSet>
    public event EventHandler<NSSet> ClickAxis;
    public event EventHandler<NSSet> ClickBackground;        
    public event EventHandler<NSSet> ClickTitle;
    public event EventHandler<NSSet> ClickLegend;  
Now these are corectly fired on both (Xamarin.Forms.iOS and Xamarin.iOS). This way (using NSSet) we get all control over the touches, i.e : 

        private void Chart_ClickLegend(object sender, NSSet e)
        {
	    // e are "touches"                 
            var touch = touches.AnyObject as UITouch;
            var locInView = touch.LocationInView(touch.View); // Point

            Chart.Header.Text = "Legend clicked! ";
        }