<Window x:Class="Financial.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:local="clr-namespace:Financial"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="400" Width="650" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid Margin="0,0,0,10">
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <local:SearchBox x:Name="_srchCompanies" Width="200" HorizontalAlignment="Right" Margin="5" />
            <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5">
                <TextBlock Text="Financial Info: " FontSize="14" FontWeight="Bold" VerticalAlignment="Center"/>
                <TextBlock x:Name="_txtCompanies" FontSize="14" Text="Companies" VerticalAlignment="Center"/>
            </StackPanel>
        </Grid>
        <StackPanel Orientation="Horizontal" Grid.Row="1">
                <CheckBox x:Name="_chkOwnerDrawFinancial" Content="Custom Cells" IsChecked="True" VerticalAlignment="Center" Click="_chkOwnerDrawFinancial_Click" Margin="5"/>
                <CheckBox x:Name="_chkAutoUpdate" IsChecked="True" Content="Auto Update" VerticalAlignment="Center" Click="_chkAutoUpdate_Click" Margin="5"/>
                <TextBlock Text="Update Interval:" VerticalAlignment="Center" Margin="5"/>
                <ComboBox x:Name="_cmbUpdateInterval" SelectedIndex="2" Width="90" VerticalAlignment="Center" SelectionChanged="_cmbUpdateInterval_SelectionChanged">
                    <ComboBoxItem Content="1000 ms" />
                    <ComboBoxItem Content="500 ms" />
                    <ComboBoxItem Content="100 ms" />
                    <ComboBoxItem Content="50 ms" />
                    <ComboBoxItem Content="5 ms" />
                    <ComboBoxItem Content="1 ms" />
                </ComboBox>
                <TextBlock Text="Batch Size" VerticalAlignment="Center" Margin="5" />
                <ComboBox x:Name="_cmbBatchSize" SelectedIndex="1" Width="90" VerticalAlignment="Center" SelectionChanged="_cmbBatchSize_SelectionChanged" >
                    <ComboBoxItem Content="500 items" />
                    <ComboBoxItem Content="100 items" />
                    <ComboBoxItem Content="10 items" />
                    <ComboBoxItem Content="1 item" />
                </ComboBox>
        </StackPanel>
        <c1:C1FlexGrid x:Name="_flexFinancial"
			IsReadOnly="true"
			MinColumnWidth="10" MaxColumnWidth="300"
			AutoGenerateColumns="False" Grid.Row="2" HorizontalAlignment="Left">
            <c1:C1FlexGrid.Columns>
                <c1:Column Binding="{Binding Symbol}" Width="100" />
                <c1:Column Binding="{Binding Name}" Width="250" />
                <c1:Column Binding="{Binding Bid}" Width="150" Format="n2" HorizontalAlignment="Right" />
                <c1:Column Binding="{Binding Ask}" Width="150" Format="n2" HorizontalAlignment="Right" />
                <c1:Column Binding="{Binding LastSale}" Width="150" Format="n2" HorizontalAlignment="Right" />
                <c1:Column Binding="{Binding BidSize}" Width="100" Format="n0" HorizontalAlignment="Right" />
                <c1:Column Binding="{Binding AskSize}" Width="100" Format="n0" HorizontalAlignment="Right" />
                <c1:Column Binding="{Binding LastSize}" Width="100" Format="n0" HorizontalAlignment="Right" />
                <c1:Column Binding="{Binding Volume}" Width="100" Format="n0" HorizontalAlignment="Right" />
                <c1:Column Binding="{Binding QuoteTime}" Width="100" Format="hh:mm:ss" HorizontalAlignment="Center" />
                <c1:Column Binding="{Binding TradeTime}" Width="100" Format="hh:mm:ss" HorizontalAlignment="Center" />
            </c1:C1FlexGrid.Columns>
        </c1:C1FlexGrid>
    </Grid>
</Window>
