• 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 Rmos22, Today, 02:20 PM
      0 responses
      1 view
      0 likes
      Last Post Rmos22
      by Rmos22
       
      Started by sawtooth500, Today, 12:59 PM
      1 response
      3 views
      0 likes
      Last Post NinjaTrader_Spencer  
      Started by Steve L, Yesterday, 09:36 PM
      1 response
      19 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by MichaelAlexander, 04-25-2017, 03:28 AM
      9 responses
      1,170 views
      0 likes
      Last Post dani neira  
      Started by uday12, Today, 11:34 AM
      2 responses
      9 views
      0 likes
      Last Post uday12
      by uday12
       
      Working...
      X