<Window x:Class="TradeBlotter.UIUtils.ProformaAddRiskDividendParityPositionDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:wpfx="http://schemas.xceed.com/wpf/xaml/toolkit"
        WindowStartupLocation="CenterScreen" 
        SizeToContent="WidthAndHeight"
         WindowStyle="SingleBorderWindow"
        ResizeMode="CanMinimize"
        Title="ProformaAddRiskDividendParityPositionDialog" Height="300" Width="500">
  <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="0">Symbol</Label>
        <TextBox Name="txtSymbol" Grid.Row="3" Grid.Column="0" MinWidth="75" AcceptsReturn="true"/>
        <!--<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="2">Exposure</Label>
        <TextBox Name="txtExposure" Grid.Row="3" Grid.Column="2" MinWidth="75" AcceptsReturn="true"/>

        <Label Name="lblPurchaseDate" Grid.Row="2" Grid.Column="6" MinWidth="75">Purchase Date</Label>
        <TextBox Name="txtPurchaseDate" Grid.Row="3" Grid.Column="6" MinWidth="75" AcceptsReturn="true" IsReadOnly="true"/>
        <!--<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="2" Grid.Column="10">Shares</Label>
        <TextBox Name="txtShares" Grid.Row="3" Grid.Column="10" 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>

