• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Example NinjaTraderAddOnProject Error in VS 2017

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

    Example NinjaTraderAddOnProject Error in VS 2017

    NinjaTrader 8.0.20.0 64-bit

    Downloaded the example NinjaTraderAddOnProject (http://ninjatrader.com/support/helpG...dOnProject.zip).

    Opened NinjaTraderAddOnProject.sln in Microsoft Visual Studio Professional 2017 Version 15.9.18+28307.960

    Selected AddOnPage.xaml

    Immediately generated an error in the Designer: Exception: Cannot create an instance of "NTTabPage_0".

    Click image for larger version  Name:	VS2017 Exception for NT8 AddOn.png Views:	0 Size:	88.8 KB ID:	1083480

    Advice gratefully received. Thanks.
    Last edited by jeronymite; 01-10-2020, 07:58 PM.

    #2
    Hi jeronymite, thanks for your note.

    NT uses many custom WPF controls that are not Designer supported. The xaml page must be manually edited and loaded with your LoadXAML method defined in your addon.

    Please let me know if I can assist any further.
    Last edited by NinjaTrader_ChrisL; 01-14-2020, 08:21 AM. Reason: spelling
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thanks, Chris.

      Can the example be enhanced to provide a fully working example, please? I can find no LoadXAML method in the example code, even though I can see some examples in the AddOn documentation.

      A fully working example will make it so very much easier to understand all the interactions and dependencies of the code, and encourage much wider development usage of the AddOn capability.

      Many thanks!

      Comment


        #4
        Hi jeronymit, thanks for your reply.

        I attached a simplified example of an addon in NT. The LoadXAML method is a local method definition that returns a DependencyObject, that is what gets used to fill the page content. I will also submit a feature request to add full designer support to the addon solution for Visual Studio.

        Please let me know if I can assist any further.
        Attached Files
        Chris L.NinjaTrader Customer Service

        Comment


          #5
          Thanks, Chris. Very much appreciate the feature request.

          I didn't see any attachment. Did I miss it?

          Thanks!

          Comment


            #6
            Hello jeronymite,

            The attachment that Chris mentioned is a .zip file in post #4, its named "AddonShell_NT8B13 (1).zip", are you unable to see that? If you can't see that for some reason you can find that file additionally posted here: https://ninjatrader.com/support/foru...830#post759830

            If you instead meant the tracking ID for the request Chris will reply back with that once hes got it.

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

            Comment


              #7
              Thanks, Jesse.

              I meant I couldn't find the actual attachment to Chris's post. I cannot find it in the other post you reference either.

              I wondered if it might be a browser issue, but I've tried several different browsers, and with addons disabled.

              It's not the first time I've been unable to see attachments. I noticed this some time ago after the migration to the updated forum software.

              Are there direct links to attachments?

              Thanks.

              UPDATE: It seems attachments are not visible when the view of the thread is "Latest Activity". One has to switch to the "Posts" view, where the attachments are visible. ... I suggest this is not an intuitively obvious functional behaviour. Nonetheless, I now can see attachments. Thanks.
              Last edited by jeronymite; 01-17-2020, 01:22 AM. Reason: Updated Information

              Comment


                #8
                Hi jeronymite, thanks for your patience,

                We are tracking your feature request as:

                SFT-4560

                Please check the release notes upon future updates to track added features:
                https://ninjatrader.com/support/help...ease_notes.htm
                Chris L.NinjaTrader Customer Service

                Comment


                  #9
                  Many thanks, Chris!

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by StevenNelson, Today, 10:14 AM
                  1 response
                  6 views
                  0 likes
                  Last Post NinjaTrader_ChrisL  
                  Started by KNalley, Today, 09:33 AM
                  2 responses
                  11 views
                  0 likes
                  Last Post KNalley
                  by KNalley
                   
                  Started by herkok, Today, 09:15 AM
                  4 responses
                  21 views
                  0 likes
                  Last Post NinjaTrader_PaulH  
                  Started by AMATX, Today, 09:29 AM
                  4 responses
                  13 views
                  0 likes
                  Last Post AMATX
                  by AMATX
                   
                  Started by arnegockeln, Today, 09:25 AM
                  1 response
                  3 views
                  0 likes
                  Last Post NinjaTrader_Melissa  
                  Working...
                  X