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!
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
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 FilesKate W.NinjaTrader Customer Service
-
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.Kate W.NinjaTrader Customer Service
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by GussJ, 03-04-2020, 03:11 PM
|
16 responses
3,280 views
0 likes
|
Last Post
by Leafcutter
Today, 04:14 PM
|
||
Started by WHICKED, Today, 12:45 PM
|
2 responses
19 views
0 likes
|
Last Post
by WHICKED
Today, 03:36 PM
|
||
Started by Tim-c, Today, 02:10 PM
|
1 response
9 views
0 likes
|
Last Post Today, 02:52 PM | ||
Started by Taddypole, Today, 02:47 PM
|
0 responses
5 views
0 likes
|
Last Post
by Taddypole
Today, 02:47 PM
|
||
Started by chbruno, 04-24-2024, 04:10 PM
|
4 responses
53 views
0 likes
|
Last Post
by chbruno
Today, 02:38 PM
|
Comment