Search code examples
xamarin.formsteechart

Xamarin Forms Teechart - chart.Zoomed doesn't work


I have a Xamarin Forms Application which display a Candle Teechart. I want to do some stuff when the user zooms and unzooms the chart. Just for testing purposes, I did the following thing:

tChart1.UndoneZoom += (object sender, EventArgs e) => {
        candleSeries.UpCloseColor = Color.Blue;
};

tChart1.Zoomed += (object sender, EventArgs e) => {
        candleSeries.UpCloseColor = Color.Pink;
};

When I zoom the chart, nothing happens, but when I double tap and unzoom it, the color changes to blue. Am I doing something wrong or is the .Zoomed event not working?


Solution

  • The problem is the Zoomed event is not being fired in Android applications both with Xamarin.Android and Xamarin.Forms. I have added it as a defect (bug #1287) to be fixed for future releases. There's no workaround I can think of for now.