<Window x:Class="TradeBlotter.UIUtils.ProformaAddPositionDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="ProformaAddPosition" Height="300" Width="300"
        xmlns:wpfx="http://schemas.xceed.com/wpf/xaml/toolkit"
        WindowStartupLocation="CenterScreen" 
        SizeToContent="WidthAndHeight"
        MinWidth="460"
        MinHeight="100"
        WindowStyle="SingleBorderWindow"
        ResizeMode="CanMinimize">
  <wpfx:BusyIndicator Name="BusyBar" IsBusy="{Binding Path=BusyIndicator}" BusyContent="{Binding Path=BusyContent}">
    <StackPanel Margin="5" Orientation="Vertical">
      <Grid DockPanel.Dock="Left" Margin="0,2,4,2">
        <Grid.ColumnDefinitions>
          <ColumnDefinition Width="Auto" />
          <ColumnDefinition Width="6" />
          <ColumnDefinition Width="Auto" />
          <ColumnDefinition Width="6" />
          <ColumnDefinition Width="Auto" />
          <ColumnDefinition Width="6" />
          <ColumnDefinition Width="Auto" />
          <ColumnDefinition Width="6" />
          <ColumnDefinition Width="Auto" />
          <ColumnDefinition Width="6" />
          <ColumnDefinition Width="Auto" />
          <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
          <RowDefinition Height="20*" />
          <RowDefinition Height="25" />
          <RowDefinition Height="25" />
          <RowDefinition Height="25" />
          <RowDefinition Height="25" />
          <RowDefinition Height="25" />
        </Grid.RowDefinitions>

        <Label Name="lblAccount" Grid.Row="2" Grid.Column="0">Account</Label>
        <ComboBox Name="cbAccounts" Grid.Row="3" Grid.Column="0" MinWidth="75" UseLayoutRounding="False" >
          <ComboBox.ItemsPanel>
            <ItemsPanelTemplate>
              <VirtualizingStackPanel/>
            </ItemsPanelTemplate>
          </ComboBox.ItemsPanel>
        </ComboBox>        

        <Label Name="lblSymbol" Grid.Row="2" Grid.Column="2">Symbol</Label>
        <ComboBox Name="cbSymbols" Grid.Row="3" Grid.Column="2" MinWidth="75" UseLayoutRounding="False" >
          <ComboBox.ItemsPanel>
            <ItemsPanelTemplate>
              <VirtualizingStackPanel/>
            </ItemsPanelTemplate>
          </ComboBox.ItemsPanel>
        </ComboBox>

        <Label Name="lblExposure" Grid.Row="2" Grid.Column="4">Exposure</Label>
        <TextBox Name="txtExposure" Grid.Row="3" Grid.Column="4" MinWidth="75" AcceptsReturn="true"/>    

        <Label Name="lblPurchaseDate" Grid.Row="2" Grid.Column="6" MinWidth="75">Purchase Date</Label>
        <DatePicker Name="dpPurchaseDate" Grid.Row="3" Grid.Column="6"></DatePicker>

        <Label Name="lblPurchasePrice" Grid.Row="2" Grid.Column="8">Purchase Price</Label>
        <TextBox Name="txtPurchasePrice" Grid.Row="3" Grid.Column="8" MinWidth="75" AcceptsReturn="true"/>

        <Label Name="lblShares" Grid.Row="4" Grid.Column="8">Shares</Label>
        <TextBox Name="txtShares" Grid.Row="5" Grid.Column="8" MinWidth="75" AcceptsReturn="true"/>        

        <Label Name="lblCompanyName" Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="7"></Label>

        <Button Content="_Ok" MinWidth="75" IsDefault="True" Margin="2" Name="btnOk" Click="btnOk_Click" Grid.Row="5" Grid.Column="0"/>
        <Button Content="_Cancel" MinWidth="75" IsCancel="True" Margin="2" Name="btnCancel" Click="btnCancel_Click"  Grid.Row="6" Grid.Column="2"/>
      </Grid>
    </StackPanel>
  </wpfx:BusyIndicator>
</Window>

