Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to customize an expandable object in the property grid?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to customize an expandable object in the property grid?

    Is there a sample of how to achieve customization like the plots do in the indicator property grid? Say I have a class that has a single brush property. How can I show the color of the brush when the property is collapsed like the plot properties do?

    #2
    Hello wbennettjr,

    Thank you for your post.

    Here is an example that shows how to use a Stroke to get that expandable/collapsible style in the property grid and then use information from that to create a line - you may be able to do something similar utilizing a Stroke to get/display that color information.

    What do you currently have in your code to display that property?

    Thanks in advance; I look forward to assisting you further.
    Attached Files

    Comment


      #3
      Thanks Kate,

      I'm already able to achieve what you have in the sample. My question isn't about retrieving color/brush information. It is about determining what shows for a collapsed expandable property.

      Click image for larger version

Name:	EMA_Plot.PNG
Views:	303
Size:	2.1 KB
ID:	1086986

      What I want to know is how I can provide my own UI element that shows up to the right as is shown to the right of the collapsed EMA plot of the image. I have a class with three brushes and I would like to paint the three brushes so the colors are visible even when collapsed.

      Thanks,
      Wil

      Comment


        #4
        Hello wbennettjr,

        Thank you for your reply.

        There would not be a supported method of doing this, and from speaking with our dev team, does not appear to be an unsupported method to do this in a custom class. That element is created by a custom data template which is typebound on Stroke, which would not be possible to implement in a custom class.

        Please let us know if we may be of further assistance to you.

        Comment


          #5
          Thanks Kate.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          612 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          355 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          561 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          564 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X