Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Theme foreground text color

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

    Theme foreground text color

    Hi:

    I have an AddOn that creates a window but I haven't found documentation to set foreground text color for my dialog text. I am currently using this:

    txtBlock1.Foreground = Brushes.White;

    That obviously doesn't works in light themes since text white in white background hides the text. I am looking how to obtain theme colors (at least for foreground text but all would be great!). Explanation or documentation is ok.

    Regards
    Waldo

    #2
    Hello Waldo,

    With your custom controls the color is whatever you choose.

    Are you wanting to get a color from the skin?

    System.Windows.Application.Current.TryFindResource ()

    The FontButtonBrush from blueprint.xaml might be what you are after..
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I ended up using another method, but thanks!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      30 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      47 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Working...
      X