我在xamarin.forms项目中使用Telerik饼图。选择行为在IOS中工作正常,但在Android SelectionChanged
事件中未触发。
var selection = new ChartSelectionBehavior();
selection.SeriesSelectionMode = ChartSelectionMode.None;
selection.DataPointSelectionMode = ChartSelectionMode.Single;
selection.SelectionChanged += Selection_SelectionChanged;
pie.Behaviors.Add(selection);