This is a migrated thread and some comments may be shown as answers.

Highlight color of selected shape

3 Answers 87 Views
Diagram, DiagramRibbonBar, DiagramToolBox
This is a migrated thread and some comments may be shown as answers.
Valentino
Top achievements
Rank 1
Valentino asked on 28 Aug 2017, 06:28 AM

When the user clicks on my shape, I'd like to make the outline red, and maybe thicker border. How can I accomplish this?

I thought it would just be a matter of putting this in my ElementShape-derived classes, but it seems my overrides for ForeColor and BackColor are only called when a new shape is placed on the diagram.

Thanks

3 Answers, 1 is accepted

Sort by
0
Eduardo
Top achievements
Rank 1
answered on 26 Jan 2018, 04:14 PM
I do not have the answer, but it's a bit demoralizing that your question is not even acknowledged by the admins.
0
n/a
Top achievements
Rank 1
answered on 08 Mar 2019, 01:54 PM
Hello, I think you could do this by using VisualItemFormating Event 
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 11 Mar 2019, 12:07 PM
Hello, guys,    

I would like to note that most of the forum threads are reviewed by Telerik representatives and sometimes we address the questions asked by our customers in the forums as well. However, a post in the forum doesn't guarantee you a response from the Telerik support team. Moreover, threads are handled according to license and time of posting, so if it is an urgent problem, we suggest you use a support ticket. Thus, our support staff will gladly assist you. Thank you for your understanding.

As a gesture of good will I have prepared a sample project for your reference demonstrating how to indicate the selected shape with a color. The attached gif file illustrates better the achieved result. Note that this is just a sample approach and it may not cover all possible cases. Feel free to modify it in a way which suits your requirement best.

I hope this information helps.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Diagram, DiagramRibbonBar, DiagramToolBox
Asked by
Valentino
Top achievements
Rank 1
Answers by
Eduardo
Top achievements
Rank 1
n/a
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or