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 set Theme for controls

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NinjaTrader_PatrickH
    replied
    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.

    Leave a comment:


  • GrumpyTrader
    replied
    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?

    Leave a comment:


  • NinjaTrader_PatrickH
    replied
    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.

    Leave a comment:


  • GrumpyTrader
    replied
    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?

    Leave a comment:


  • NinjaTrader_PatrickH
    replied
    Hello GrumpyTrader,

    Thank you for your post.

    You can use NinjaTrader.Core.Globals.GeneralOptions.Skin to find the Skin applied and then adjust your Add On based on the Skin chosen.

    Please let me know if you have any questions.

    Leave a comment:


  • GrumpyTrader
    started a topic How to set Theme for controls

    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?

Latest Posts

Collapse

Topics Statistics Last Post
Started by samish18, Yesterday, 08:31 AM
4 responses
14 views
0 likes
Last Post elirion
by elirion
 
Started by funk10101, Yesterday, 09:43 PM
1 response
14 views
0 likes
Last Post NinjaTrader_Gaby  
Started by TheWhiteDragon, 01-21-2019, 12:44 PM
5 responses
551 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by rtwave, 04-12-2024, 09:30 AM
5 responses
37 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by funk10101, Today, 12:02 AM
1 response
11 views
0 likes
Last Post NinjaTrader_LuisH  
Working...
X