Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to export .dll with embedded xaml

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

    How to export .dll with embedded xaml

    lets say, I create an addon, and it has `WindowContent.xaml` file aside.
    Then I want to export the AddOn, as `dll` compiled. but when importing it on another Ninja, the `xaml` file is not found.
    What is correct/easy way to embed & transfer `.xaml` within .dll?
    and what is example of reading the xaml in ninjascript later (because `File.ReadAllText("c:/..ninjatrader/addons/xyz/WindowContent.xaml"`) will not work).

    i tried to embed that XAML as literal string within ninjascript itself, but you know, then you are not able to visually edit/work with XAML in VISUAL STUDIO.

    #2
    Hello ttodua,

    Manually add the xaml file to the export.
    https://ninjatrader.com/support/help...lyzerTemplates

    You could choose to add this in the templates folder (and give the path to that folder) or to the Addons folder.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello ttodua,

      Manually add the xaml file to the export.
      https://ninjatrader.com/support/help...lyzerTemplates

      You could choose to add this in the templates folder (and give the path to that folder) or to the Addons folder.
      thanks but when I click on link (to open in new tab) it leads to 404 page.
      probably google analytics of tracker-added parameters mess it up

      Comment


        #4
        Hello ttodua,

        Our IT team is aware of links with the hashtag symbol are breaking and they are looking into this. In the meantime, we have heard reports that using Ublock Origin Chrome addon can prevent the malformed links.

        Below is a modified link that should work. (This will not open the 'Adding custom resource files' subsection)
        https://ninjatrader.com/support/help...lyzerTemplates
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        135 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        290 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        238 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        331 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        171 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X