Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Addon window controls not reflecting app theme

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

    Addon window controls not reflecting app theme

    I've been working for months on an addon, which is almost done... and added a lot of code to tweak my controls' colors depending on the theme. But, have hit a brick wall with some elements of combobox embedded in an NTGrid,(well... XamDataGrid, to be more precise) specifically, modifying the PART_EditableTextBox component of the filter. Sigh...

    I wonder if there is a better way... as it seems a general problem... even simple controls like textboxs I have to manually modify foreground/background colors.

    So... the real question is: Is there a mechanism to make all controls on addon windows inherit the chosen skin color theme? (I probably should have asked this months ago)
    FYI, my addon is based on the sample/demo addon.

    Cheers,
    T.
    Last edited by tgn55; 04-16-2021, 08:39 PM.

    #2
    Hello tgn55,

    You can get some colors from the skin.

    The custom DropMenu class in the SampleWPFModifications gets colors from the skin.
    Hello All, Moving forward this will be maintained in the help guide reference samples and no longer maintained on the forum. Creating Chart WPF (UI) Modifications from an Indicator - https://ninjatrader.com/support/help...ui)-modifi.htm (https://ninjatrader.com/support/helpGuides/nt8/creating-chart-wpf-(ui)-modifi.htm) I've



    That I know of, no, there is no mechanism to make all non-NinjaTrader controls inherit the chosen skin color. These are explicitly applied to objects either directly or through styles.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks Chelsea... I haven't looked at your links yet... but after more testing, I notice one seemingly simple bug/oversight...using the AddonShell as a test vehicle, I can see that many controls do change with the skin..but, surprisingly... Label controls DO NOT!! The Example Label thing shows with black foreground regardless of skin...(I removed the explicit Foreground="#CCCCCC" bit... just let it use default value, same as the other controls)

      This is an easy fix... whereas my real need is to tweak internal parts of Infragistics XamDataGrid... which I know you guys can't support... but, maybe getting Labels to track skin changes warrants a minor bug fix regardless?

      I know about pulling colors from the skin at runtime (I do this in my addon), so can customise my controls mostly... with 1 or 2 exceptions related to the XamDataGrid filter dropdown.

      Will come back after reviewing your links,
      Thanks,
      T.
      Last edited by tgn55; 04-18-2021, 09:26 PM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      579 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      334 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      554 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X