Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Regarding AddOn and Xaml for NTWindow Interface

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

    Regarding AddOn and Xaml for NTWindow Interface

    I am trying to change my interface, to be able to change parameters around. But for some reason the compiled window stays blank. It worked before, but I cant seem to figure out the mistake.

    Code:
    <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:t="clr-namespace:NinjaTrader.Gui.Tools;assembly=NinjaTrader.Gui">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="0.15*"/>
                <RowDefinition Height="0.15*"/>
                <RowDefinition Height="0.15*"/>
                <RowDefinition Height="0.15*"/>
                <RowDefinition Height="0.15*"/>
                <RowDefinition Height="*"/>
             <!--  <RowDefinition Height="*"/>-->
            </Grid.RowDefinitions>
            <Grid Grid.Row="0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="0.33*" />
                    <ColumnDefinition Width="0.33*" />
                    <ColumnDefinition Width="0.33*" />
                </Grid.ColumnDefinitions>
                <!-- 
                For a full reference of the tools you can use in XAML that are provided by NinjaTrader see: http://www.ninjatrader.com/support/helpGuides/nt8/en-us/controls.htm  
                -->
                <t:InstrumentSelector x:Name="instrumentSelector" Grid.Column="0" LastUsedGroup="BlankAddOn" Margin="5"/>
                <t:IntervalSelector x:Name="intervalSelector" Grid.Column="1" HorizontalAlignment="Left" Margin="5" />
                <t:AccountSelector x:Name="accountSelector" Grid.Column="2" Margin="5" />
            </Grid>
              <Grid Grid.Row="1">
                <Grid.RowDefinitions>
                    <RowDefinition Width ="0.25*"/>
                    <RowDefinition Width ="0.25*"/>
                    <RowDefinition Width ="0.25*"/>
                    <RowDefinition Width ="0.25*"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="0.66*" />
                    <ColumnDefinition Width="0.33*" />
                </Grid.ColumnDefinitions>
                
                <Label Content="Neural Trainer" Grid.Row ="0" Grid.Column="0" x:Name="top_Label" />
                <TextBox x:Name="trainpath" Width="275" Margin="10" Grid.Row ="1" Grid.Column ="0"> Directory for Training File</TextBox>
                <Button Name ="brButton" Content="Browse" Margin="5" Grid.Row ="1" Grid.Column ="1"/>
                <TextBox x:Name="evalPath" Width="275" Margin="10" Grid.Row ="2" Grid.Column="0"> Directory for Eval File</TextBox>
                <Button Name="evalBtn" Content ="Browse" Margin ="5" Grid.Row ="2" Grid.Column="1"/>
                <TextBox x:Name="netLocator" Width="275" Margin="10" Grid.Row ="3" Grid.Column="0"> Directory for NetWork</TextBox>
                <Button Name ="netButton" Content="Browse" Margin="5" Grid.Row ="3" Grid.Column="1"/>
              </Grid>
                <!-- Area of Parameters for training-->>
              <Grid Grid.Row ="2">
                <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="0.25*" />
                  <ColumnDefinition Width="0.25*" />
                  <ColumnDefinition Width="0.25*" />
                  <ColumnDefinition Width="0.25*" />
                </Grid.ColumnDefinitions>
                <Label Height="30" Content="Epochs:" FontSize="14" Name="epochLbl"  Grid.Column ="0"/>
                    <Label Height="30" Content="Species:" FontSize="14" Name="organismLbl"  Grid.Column ="1"/>
                    <Label Height="30" Content="Lead:" FontSize="14" Name="leadLbl"  Grid.Column ="2"/>
                    <Label Height="30" Content="Lag:" FontSize="14" Name="lagLbl"  Grid.Column ="3"/>
              </Grid>  
          
              <Grid Grid.Row ="3">
                <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="0.25*" />
                  <ColumnDefinition Width="0.25*" />
                  <ColumnDefinition Width="0.25*" />
                  <ColumnDefinition Width="0.25*" />
                </Grid.ColumnDefinitions>
                    <TextBox Height="30" Width="40" Margin="0,0,0,0" x:Name="epcTxtBx" Text="100" FontSize="14" TextAlignment="Right" VerticalAlignment="Center" Grid.Column ="0"/>
                    <TextBox Height="30" Width="40" Margin="0,0,0,0" x:Name="orgTxtBx" Text="500" FontSize="14" TextAlignment="Right" VerticalAlignment="Center" Grid.Column ="1"/>
                    <TextBox Height="30" Width="40" Margin="0,0,0,0" x:Name="leadTxtBx" Text="10" FontSize="14" TextAlignment="Right" VerticalAlignment="Center" Grid.Column ="2"/>
                    <TextBox Height="30" Width="40" Margin="0,0,0,0" x:Name="lagTxtBx" Text="20" FontSize="14" TextAlignment="Right" VerticalAlignment="Center" Grid.Column ="3"/>
              </Grid>
              <Grid Grid.Row ="4">
                 <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="0.25*" />
                  <ColumnDefinition Width="0.25*" />
                  <ColumnDefinition Width="0.25*" />
                  <ColumnDefinition Width="0.25*" />
                </Grid.ColumnDefinitions>
                <Button Name="trainBtn" Margin="5" Content ="Train"  Grid.Column ="0"/>
                <Button Name ="stopBtn" Content="Stop" Margin="5" Grid.Column ="1" />
              </Grid>
                  <Label Grid.Row ="5" Name ="upDate" Margin ="5" Content="Progress" />
        </Grid>
    </Page>
    Any ideas on what I could be doing wrong?
    Last edited by Yandychang; 07-30-2016, 01:27 PM.

    #2
    Never Mind, Made it work...

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by andrewtrades, Today, 04:57 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by chbruno, Today, 04:10 PM
    0 responses
    3 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    436 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    6 views
    0 likes
    Last Post FAQtrader  
    Started by rocketman7, Today, 09:41 AM
    5 responses
    19 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X