Highlight color of selected shape

4 posts, 0 answers
  1. Valentino
    Valentino avatar
    28 posts
    Member since:
    Aug 2017

    Posted 28 Aug 2017 Link to this post

    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

  2. Eduardo
    Eduardo avatar
    3 posts
    Member since:
    Nov 2010

    Posted 26 Jan 2018 in reply to Valentino Link to this post

    I do not have the answer, but it's a bit demoralizing that your question is not even acknowledged by the admins.
  3. SERGE MURET
    SERGE MURET avatar
    1 posts
    Member since:
    Mar 2018

    Posted 08 Mar Link to this post

    Hello, I think you could do this by using VisualItemFormating Event 
  4. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3457 posts

    Posted 11 Mar Link to this post

    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.
Back to Top