Click or drag to resize

Order log

GUI orderlog

OrderLogGrid is a graphical component to display the order log ( OrderLogItem).

Main properties and methods

Below is the code snippet with its use. The code example is taken from Samples/ITCH/SampleITCH.

XAML
Window x:Class="SampleITCH.OrdersLogWindow"
        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.OrderLog}" Height="750" Width="900">
  <xaml:OrderLogGrid x:Name="OrderLogGrid" x:FieldModifier="public" />
</Window>
C#
private readonly Connector _connector = new Connector();

private void ConnectClick(object sender, RoutedEventArgs e)
{
    .................................................

    _connector.NewOrderLogItem += _orderLogWindow.OrderLogGrid.LogItems.Add;
    .................................................
}