Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem with XALM file

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

    Problem with XALM file

    Hello Dear Friends.
    I have indicator and XALM file.
    How I can put all code XALM file to the code CS file?

    Now I read data from XALM:

    Page page = new Page();
    FileStream fs = new FileStream(System.IO.Path.Combine(NinjaTrader.Core .Globals.UserDataDir, @"bin\Custom\AddOns\WPF_Propertis_HFT.xaml"), FileMode.Open);
    page = (Page)XamlReader.Load(fs);

    How I can read the data from CS file?

    Thank You Very Much.

    #2
    Hello _Roman,

    Thank you for the post.

    I am not certain I understand the question as it was written, can you further explain what you would like to do at this point with the syntax you provided?

    Are you asking how to include the XAML with an export? You can include the .XAML file as a resource in an export using the steps here: https://ninjatrader.com/support/help...lyzerTemplates

    If you are otherwise trying to recreate what you have done in xaml in just c# code, you would need to search online for C# ways to create WPF controls with only code. There are many tutorials online that cover this subject. Instead of loading a .xaml file and parsing it, you could construct your controls using only code and apply that control as the page content.


    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    596 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    343 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    556 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    554 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X