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

Create a lisview in NinjaTrader 8

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

    Create a lisview in NinjaTrader 8

    I am working on creating NinjaTrader add on. I am trying to create a table to show information like this with custom information. I use list view but it look different. Is there any guidline or information that I can read to develop the ListView like this. Here is the code.
    Code:
    <ListView Name="AccountList" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5" Grid.Row="2" Grid.Column="2" BorderBrush="{StaticResource BorderThinBrush}" BorderThickness="1">
                        <ListView.View>
                            <GridView>
                                <GridViewColumn Header="Account Name" Width="200">
                                    <GridViewColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding AccountName}" />
                                        </DataTemplate>
                                    </GridViewColumn.CellTemplate>
                                </GridViewColumn>
                                <GridViewColumn Header="Balance" Width="100">
                                    <GridViewColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding Balance}" />
                                        </DataTemplate>
                                    </GridViewColumn.CellTemplate>
                                </GridViewColumn>
                                <GridViewColumn Header="Equity" Width="100">
                                    <GridViewColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding Equity}" />
                                        </DataTemplate>
                                    </GridViewColumn.CellTemplate>
                                </GridViewColumn>
                                <!-- Add more columns as needed -->
                            </GridView>
                        </ListView.View>
                    </ListView>​
    Thank you!

    Click image for larger version

Name:	image.png
Views:	125
Size:	8.9 KB
ID:	1271122Click image for larger version

Name:	image.png
Views:	123
Size:	1.8 KB
ID:	1271123

    #2
    Hello QuanPh,

    Thank you for your post.

    Please take a look at the 'AddOnFramework' and 'ListChartIndicatorsExample' sample scripts in NinjaTrader 8 for examples of Add ons which use a list view.

    AddOnFramework example -


    ListChartIndicators example -



    Please let me know if you have questions about these scripts.
    Gaby V.NinjaTrader Customer Service

    Comment


      #3
      I have read all the sample but it didn't answer my question. I want to create a table to show infromation exactly the same style like this one.
      Click image for larger version

Name:	image.png
Views:	112
Size:	6.5 KB
ID:	1271266

      Comment


        #4
        The grids on the Control Center are grids and are not list views.

        Unfortunately, we do not have any examples of recreating the Control Center grids. This thread will remain open for any community members that would like to provide unsupported / undocumented code.

        You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like a list of affiliate consultants who would be happy to create this script or any others at your request or provide one on one educational services.
        Gaby V.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,404 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by Shai Samuel, 07-02-2022, 02:46 PM
        4 responses
        95 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by DJ888, Yesterday, 10:57 PM
        0 responses
        8 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        159 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Yesterday, 09:29 PM
        0 responses
        8 views
        0 likes
        Last Post Belfortbucks  
        Working...
        X