Page 1 of 1

View3D.Annotations mouse event not working

Posted: Mon May 22, 2023 9:23 am
by grey
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);

Re: View3D.Annotations mouse event not working

Posted: Mon May 22, 2023 2:11 pm
by ArctionKestutis
AllowUserInteraction should be True.

Re: View3D.Annotations mouse event not working

Posted: Tue May 23, 2023 3:40 am
by grey
ArctionKestutis wrote: Mon May 22, 2023 2:11 pm AllowUserInteraction should be True.
nice thanks