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 set Theme for controls
Collapse
X
-
How to set Theme for controls
When creating controls in an AddOn, it seems as though some controls pick up the theme automatically (like Button's), while others don't (ListView). Is there a standard way to pick up the current theme for NT8 AddOn's?Tags: None
-
Hi Patrick,
Are there defined resources for these variables that I can access in NinjaTrader.Gui.Tools or do I have to backward engineer them based on the skin?
Comment
-
Hello GrumpyTrader,
Thank you for your response.
You can review the files under Documents\NinjaTrader 8\templates\Skins for the different items that can be changed.
You can also reference the Help Guide on Skins: http://ninjatrader.com/support/helpG...r_own_skin.htm
However, there is no resource for definitions of each item in the Skins.
Please let me know if you have any questions.
Comment
-
Hi Patrick
I've been working on getting the styles synchronized in my VS AddOn Project. The goal is to import the skin resources into the project. The NinjaTraderAddOnProject example has the same issue I am running into where all the references in the XAML to the resources (such as Style="{StaticResource FontLabel}") can not be resolved in the project. I'm trying to figure out what the best way is to a) determine the skin used and b) load the correct resources in the DLL. Is it possible for someone on your side to fix the example so that the resources are resolved?
Comment
-
Hello GrumpyTrader,
Thank you for your response.
The resources in this case are local to NinjaTrader and would not be available in the project as you are building it. You could create your own place holder resources in your files while working in Visual Studio and then remove them before compiling.
I would recommend to develop Add Ons without the XAML designer as the preview will not work properly and there is no means around this.
Please let me know if you have any questions.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by kaywai, 09-01-2023, 08:44 PM
|
5 responses
601 views
0 likes
|
Last Post Today, 12:32 AM | ||
Started by xiinteractive, 04-09-2024, 08:08 AM
|
6 responses
22 views
0 likes
|
Last Post Today, 12:31 AM | ||
Started by Pattontje, Yesterday, 02:10 PM
|
2 responses
16 views
0 likes
|
Last Post
by Pattontje
Yesterday, 11:49 PM
|
||
Started by flybuzz, 04-21-2024, 04:07 PM
|
17 responses
230 views
0 likes
|
Last Post
by TradingLoss
Yesterday, 11:45 PM
|
||
Started by agclub, 04-21-2024, 08:57 PM
|
3 responses
17 views
0 likes
|
Last Post
by TradingLoss
Yesterday, 11:42 PM
|
Comment