Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    Kate W.NinjaTrader Customer Service

    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:	245
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.
        Kate W.NinjaTrader Customer Service

        Comment


          #5
          Thanks Kate.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by samish18, Today, 01:01 PM
          0 responses
          1 view
          0 likes
          Last Post samish18  
          Started by WHICKED, Today, 12:56 PM
          0 responses
          4 views
          0 likes
          Last Post WHICKED
          by WHICKED
           
          Started by Spiderbird, Today, 12:15 PM
          2 responses
          10 views
          0 likes
          Last Post Spiderbird  
          Started by WHICKED, Today, 12:45 PM
          0 responses
          7 views
          0 likes
          Last Post WHICKED
          by WHICKED
           
          Started by FrazMann, Today, 11:21 AM
          2 responses
          6 views
          0 likes
          Last Post NinjaTrader_ChristopherJ  
          Working...
          X