Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Adding Windows

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

    Adding Windows

    Hi. I'm developing a Addon, it's the Time&Sales improved, and I would like to open a new window when the user press the button "propiedades". This new window (wpf) it's for the properties of the Time&Sales, like tradeBlocks, color of foreground, background and more things.

    Any help please..

    How can I add another Layout (XAML).

    Thanks.
    Attached Files

    #2
    Hello brokerbombero,

    I'm currently looking into this and will reply when I have more information.

    Thank you for your patience.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Hello brokerbombero,

      Thank you for your patience.

      There is no supported way to open the properties menu of a time and sales window.

      Please let us know if you need further assistance.
      Alan P.NinjaTrader Customer Service

      Comment


        #4
        Open a new window

        Thanks.

        I don't want to do that. I have developed a new Addon. Because I wanted to improve the Time&Sales that it come with Ninjatrader8.

        I have the main window, that is a XALM layout. But I wanted to open a new layout(child layout) for to get the properties of the my AddOnTime&Sales no Time&Sales Ninjatrader8. Like color rows, filters, etc..

        I don't want to open the properties of the Time&Sales.

        Thanks

        Comment


          #5
          Hello,

          Thank you for the reply.

          To open your own window, you could see how a window is created from a menu click in the Addon sample here: https://ninjatrader.com/support/help...t_overview.htm
          (AddOn Framework NinjaScript Basic)
          Code:
          Core.Globals.RandomDispatcher.BeginInvoke(new Action(() => new AddOnFrameworkWindow().Show()));
          You would need to use similar syntax with your custom button. Your buttons event could be used to create a new window with whatever content you decide to place in it. The addon sample also shows how to load .xaml files as content, this is a larger sample so I would direct you to see the sample for that specifically.

          I look forward to being of further assistance.
          JesseNinjaTrader Customer Service

          Comment


            #6
            Working

            Ok, thanks a lot. It's working now...

            I have create a new layout and a new class call PropertiesWindow : NTWindow, IWorkspacePersistence

            And I call like you have same and it's working. I have to load the content of the layout that a want to placed it.

            Thanks again...

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Sparkyboy, Today, 10:57 AM
            0 responses
            3 views
            0 likes
            Last Post Sparkyboy  
            Started by TheMarlin801, 10-13-2020, 01:40 AM
            21 responses
            3,917 views
            0 likes
            Last Post Bidder
            by Bidder
             
            Started by timmbbo, 07-05-2023, 10:21 PM
            3 responses
            152 views
            0 likes
            Last Post grayfrog  
            Started by Lumbeezl, 01-11-2022, 06:50 PM
            30 responses
            811 views
            1 like
            Last Post grayfrog  
            Started by xiinteractive, 04-09-2024, 08:08 AM
            3 responses
            11 views
            0 likes
            Last Post NinjaTrader_Erick  
            Working...
            X