Click or drag to resize

Ticks

GUI TradeGrid

TradeGrid - trade table.

Main properties

Below is the code snippet with its use. The code example is taken from Samples/InteractiveBrokers/SampleIB.

XAML
<Window x:Class="Sample.TradesWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:loc="clr-namespace:StockSharp.Localization;assembly=StockSharp.Localization"
    xmlns:xaml="http://schemas.stocksharp.com/xaml"
    Title="{x:Static loc:LocalizedStrings.Str985}" Height="284" Width="544">
  <xaml:TradeGrid x:Name="TradeGrid" x:FieldModifier="public" />
</Window>
C#
private void ConnectClick(object sender, RoutedEventArgs e)
{
    .......................................


    _connector.NewMyTrade += trade => _myTradesWindow.TradeGrid.Trades.Add(trade);


    _connector.NewTrade += trade => _tradesWindow.TradeGrid.Trades.Add(trade);
    .......................................
}