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

Xaml Grid for an Addon Window

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

    Xaml Grid for an Addon Window

    I have an Add-on that that has been evolved mainly from the "AddOnShellNoTabs" example provided by the NT support team.(Thanks).
    in the application I am developing it has two sections with different format of data. the first section has 5 columns (even distributed) and 7rows. the second part has 8colums even distributed and 13 rows.
    The questions are:
    a) Is it better/easier to have two XAML grids? in the same Add-on?.
    b) Is it better (is possible?) to modify the second part of the grid to suit the number of columns needed?
    c) Do you have maybe an example where i can start from?

    Thank you very much!!!
    FVJ


    #2
    Hello, thanks for writing in.

    I do not know of an existing example that implements two grids. Typically an application will have 1 main grid then have sub-grids within the main grid. This is sided more on the C# side of things rather than the NinjaScript library. There are many resources for working in WPF grid controls e.g. the complete WPF tutorial:
    https://wpf-tutorial.com/panels/grid-rows-and-columns/ (publicly available)

    Best regards,
    -ChrisL
    Last edited by NinjaTrader_ChrisL; 12-01-2021, 01:21 PM.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      efeuvejota01 There are many possibilities, of course. However, the suggestion of NinjaTrader_ChrisL to use one main grid and then have sub-grids would work well for the requirements you describe. The main grid would have just two cells, it seems. Then within each of those cells, define your other grids accordingly.

      Thanks.

      Comment


        #4
        Thank You very much!!!!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by WHICKED, Yesterday, 11:12 PM
        0 responses
        2 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Started by AdeptistJune, Yesterday, 08:08 PM
        1 response
        6 views
        0 likes
        Last Post bltdavid  
        Started by GKbowen, Yesterday, 04:03 PM
        3 responses
        12 views
        0 likes
        Last Post bltdavid  
        Started by bojim, Yesterday, 08:35 PM
        0 responses
        4 views
        0 likes
        Last Post bojim
        by bojim
         
        Started by jamestrader21x, Yesterday, 07:53 AM
        8 responses
        34 views
        0 likes
        Last Post NinjaTrader_Kate  
        Working...
        X