Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to customize an expandable object in the property grid?
Collapse
X
-
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?Tags: None
-
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
-
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.
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
-
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
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
630 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
364 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
564 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
568 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment