View3D.Annotations mouse event not working

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
grey
Posts: 6
Joined: Mon May 22, 2023 9:03 am

View3D.Annotations mouse event not working

Post by grey » 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);
Attachments
微信截图_20230522172146.png
微信截图_20230522172146.png (479.86 KiB) Viewed 7415 times

ArctionKestutis
Posts: 555
Joined: Mon Mar 14, 2016 9:22 am

Re: View3D.Annotations mouse event not working

Post by ArctionKestutis » Mon May 22, 2023 2:11 pm

AllowUserInteraction should be True.

grey
Posts: 6
Joined: Mon May 22, 2023 9:03 am

Re: View3D.Annotations mouse event not working

Post by grey » Tue May 23, 2023 3:40 am

ArctionKestutis wrote: Mon May 22, 2023 2:11 pm AllowUserInteraction should be True.
nice thanks

Post Reply