View3D.Annotations mouse event not working
Posted: Mon May 22, 2023 9:23 am
I add a Annotation3D in the wpf demo which named 'Chart with Lights and Cameras', i want do something when mouse click the Annotation,but the Annotation3D.MouseClick、MouseDown and other event about mouse all not work,Why? what should i do? thc code is below
Code: Select all
var ann = new Annotation3D
{
Text = "hellow!",
LocationAxisValues = new PointDoubleXYZ(50, 50, 20),
LocationCoordinateSystem = Arction.Wpf.Charting.CoordinateSystem.AxisValues,
Style = Arction.Wpf.Charting.AnnotationStyle.Rectangle,
AllowUserInteraction = false,
Fill = new Fill { Style = RectFillStyle.None },
Shadow = new Shadow { Visible = false },
BorderVisible = false,
TextStyle = new AnnotationTextStyle { Color = Colors.Black },
};
ann.MouseClick += Ann_MouseClick;
ann.MouseDown += Ann_MouseDown;
ann.MouseOverOn += Ann_MouseOverOn;
_chart.View3D.Annotations.Add(ann);