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

Editing the AddOn Framework form

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

    #16
    Hi Jason,

    This looks like a great post. I want to try this,but I'm a little unsure what to do in step 4.

    Can I ask you to post the Post-build lines as text? They are cut off in the screenshot.

    Thanks very much,
    -Bob

    Originally posted by jasonnator View Post
    I have been able to pull of at least an interim solution. See below

    1) In Visual Studio, create a "Custom WPF Library" project. This type is important because VS will add the required items in AssemblyInfo.cs as well as the Themes/Generic.xaml
    2) Add the proper NinjaTrader references from the Program Files bin or bin64 directories.
    3) In Themes/Generic.xaml, add the following
    Code:
    <ResourceDictionary Source="pack://application:,,,/NinjaTrader.Gui;component/general.xaml" />
    to your ResouceDictionary.MergedDictionaries.
    4) Add a post build command to automatically place your assembly (I also add my .pdb) to the appropriate NinjaTrader 8/bin/Custom folder

    Now when you build out your user control, it will apply the NinjaTrader styles at runtime. However, during design time, you'll still see the vanilla styles but they get picked up at runtime.

    Note: The xaml designer definitely has some issues trying to resolve the NinjaTrader.Gui general.xaml resource dictionary. It has crashed my xaml designer multiple times but that does not affect the project's ability to build.

    Comment


      #17
      bob789, I show it fully in the 4th attachment "PostBuildCapture.PNG"
      Last edited by jasonnator; 01-23-2018, 09:47 AM. Reason: correct member tagging

      Comment


        #18
        Originally posted by jasonnator View Post
        bob789, I show it fully in the 4th attachment "PostBuildCapture.PNG"
        So you do! Sorry, my bad.

        Thanks again BTW. I'll be using it for sure, unless they open NT up to designing with Blend.

        Comment


          #19
          Add-On Development?

          Hi everyone in this Thread,

          I added the NT references and my XAML Code, which is ok, but when I try saying Build -> rebuild solution it gives me 238 Errors in the AddOnPage.xaml.cs. (see attachment)
          Does anybody have this, or maybe has a solution that actually works?
          Many thanks
          Attached Files

          Comment


            #20
            Hello rob3rt,

            I just wanted to let you know I have replied by email to this question as it was also sent to support.

            I look forward to being of further assistance.
            JesseNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by rtwave, 04-12-2024, 09:30 AM
            2 responses
            20 views
            0 likes
            Last Post rtwave
            by rtwave
             
            Started by tsantospinto, 04-12-2024, 07:04 PM
            5 responses
            68 views
            0 likes
            Last Post tsantospinto  
            Started by cre8able, Today, 03:20 PM
            0 responses
            7 views
            0 likes
            Last Post cre8able  
            Started by Fran888, 02-16-2024, 10:48 AM
            3 responses
            49 views
            0 likes
            Last Post Sam2515
            by Sam2515
             
            Started by martin70, 03-24-2023, 04:58 AM
            15 responses
            115 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Working...
            X