I'm trying to add clickable rectangles to a diagram, but the event handler doesn't execute. Why?
Thank you far any help!
private void button1_Click(object sender, EventArgs e) { var shape1 = new RadDiagramShape() { ElementShape = new RoundRectShape(0), Position = new Telerik.Windows.Diagrams.Core.Point(50, 50), Height = 100, Width = 100, BackColor = System.Drawing.Color.White, BorderBrush = new SolidBrush(System.Drawing.Color.Black), DrawBorder = true, ShouldHandleMouseInput = true, IsConnectorsManipulationEnabled = false, IsEditable = false, IsRotationEnabled = false, IsDraggingEnabled = false }; shape1.MouseClick += shape_Click; radDiagram1.AddShape(shape1); radDiagram1.SelectionMode = Telerik.Windows.Diagrams.Core.SelectionMode.None; } private void shape_Click(object sender, EventArgs e) { ; }