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 johnMoss, Today, 04:06 PM
    0 responses
    1 view
    0 likes
    Last Post johnMoss  
    Started by agraham, Today, 01:05 PM
    0 responses
    25 views
    0 likes
    Last Post agraham
    by agraham
     
    Started by jagswe, Today, 01:34 PM
    0 responses
    13 views
    0 likes
    Last Post jagswe
    by jagswe
     
    Started by PaulMohn, Yesterday, 05:25 AM
    9 responses
    34 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by srbdoc, Today, 12:20 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Working...
    X