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

Custom WPF control to adjust to NT skin

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

    Custom WPF control to adjust to NT skin

    Created a AddOn with a WPF form, NT controls like AccountSelector use the selected skin correctly, what is the right way to make other controls like Label and Button use the selected NT skin?

    #2
    Hello,

    Thank you for the post.

    In general, most of the standard controls should show up skinned by default, the platform uses Resource dictionaries to control the skins so in theory most items should be skinned. There can be cases where you need to manually apply a style or Font to get the right look or icon depending on what control is being used.

    Was this a general question or have you found a case where some control looks like it is not styled correctly?


    You can find help on this topic spread throughout the forum, generally if you run into a specific control that looks wrong and search the forum you should get some results.

    You can find examples of Buttons specifically in the Addon example here ( AddOn Framework NinjaScript Basic ): https://ninjatrader.com/support/help...t_overview.htm

    Some other examples of styling can be found in the following examples:




    Please let me know if I may be of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thanks

      Thanks for your answer and pointing me in the right direction, the key for me was to use

      <TextBlock Style="{StaticResource FontLabel}" ..../>

      instead of <Label />

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CortexZenUSA, Today, 12:53 AM
      0 responses
      2 views
      0 likes
      Last Post CortexZenUSA  
      Started by CortexZenUSA, Today, 12:46 AM
      0 responses
      1 view
      0 likes
      Last Post CortexZenUSA  
      Started by usazencortex, Today, 12:43 AM
      0 responses
      5 views
      0 likes
      Last Post usazencortex  
      Started by sidlercom80, 10-28-2023, 08:49 AM
      168 responses
      2,266 views
      0 likes
      Last Post sidlercom80  
      Started by Barry Milan, Yesterday, 10:35 PM
      3 responses
      13 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Working...
      X