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 ScottWalsh, 04-16-2024, 04:29 PM
            7 responses
            34 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by cls71, Today, 04:45 AM
            0 responses
            5 views
            0 likes
            Last Post cls71
            by cls71
             
            Started by mjairg, 07-20-2023, 11:57 PM
            3 responses
            214 views
            1 like
            Last Post PaulMohn  
            Started by TheWhiteDragon, 01-21-2019, 12:44 PM
            4 responses
            547 views
            0 likes
            Last Post PaulMohn  
            Started by GLFX005, Today, 03:23 AM
            0 responses
            3 views
            0 likes
            Last Post GLFX005
            by GLFX005
             
            Working...
            X