Announcement

Collapse
No announcement yet.

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 hbkopugwdmkb, Today, 11:10 PM
            0 responses
            1 view
            0 likes
            Last Post hbkopugwdmkb  
            Started by fastnet, Today, 10:58 PM
            0 responses
            3 views
            0 likes
            Last Post fastnet
            by fastnet
             
            Started by tradingbobby, Today, 10:41 PM
            1 response
            6 views
            0 likes
            Last Post s.kinra
            by s.kinra
             
            Started by bfalls, Today, 10:38 PM
            1 response
            7 views
            0 likes
            Last Post s.kinra
            by s.kinra
             
            Started by WHICKED, Today, 09:05 PM
            0 responses
            11 views
            0 likes
            Last Post WHICKED
            by WHICKED
             
            Working...
            X