Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cannot load xaml files in Addon.

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

    Cannot load xaml files in Addon.

    I got an addon project ready to release it to my customers. I want to build it as dll. Using Visual Studio I have created all the appropriate files (.cs and .xaml files). In my code I reference to the xaml files using:
    Code:
    using (System.IO.Stream assemblyResourceStream = GetManifestResourceStream("Addons.myfolder.myfile.xaml")
    When I export the project from NinjaTrader and deliver the zip to another machine the xaml files are not found. I've tried using the build action as "Resource", Embedded Resource" and even "Page".

    When using Page i also tried to add manually the xaml files in the zip folder that NinjaTrader created as the guide refers(https://ninjatrader.com/support/help..._procedure.htm). Nothing works so far.

    Any help about it please?

    #2
    Hello spirosbatzio,

    Welcome to the NinjaTrader forums!

    Below is a link to a working example you can base your script from.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello Chelsea and thank you for your prompt response.

      I use export as compiled assembly so it produces only the dll file. That means I need to edit the zip file and move the dll and the xaml files within an AddOns/xxx folder?

      Comment


        #4
        Hello spirosbatzio,

        Yes, you would need to manually add the xaml file. The dll file will already be in the export (unless this is a referenced dll, which would need to be manually added to the root directory).
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          It works fine!!

          Thanks for your help

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          576 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          334 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          553 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X