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 argusthome, 03-08-2026, 10:06 AM
        0 responses
        55 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        37 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        17 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        19 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        49 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X