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:	308
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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          42 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          20 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          29 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          46 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          38 views
          0 likes
          Last Post CarlTrading  
          Working...
          X