• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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:

    https://ninjatrader.com/support/foru...731#post486731
    https://ninjatrader.com/support/foru...22&postcount=4

    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 Botan626, Today, 04:43 AM
      0 responses
      4 views
      0 likes
      Last Post Botan626  
      Started by xsgex, Yesterday, 09:46 PM
      0 responses
      3 views
      0 likes
      Last Post xsgex
      by xsgex
       
      Started by Steve L, Yesterday, 09:36 PM
      0 responses
      6 views
      0 likes
      Last Post Steve L
      by Steve L
       
      Started by krugman25, Yesterday, 09:34 PM
      0 responses
      4 views
      0 likes
      Last Post krugman25  
      Started by indy73, Yesterday, 04:42 PM
      0 responses
      15 views
      0 likes
      Last Post indy73
      by indy73
       
      Working...
      X