MyTradeGrid

StockSharp.Xaml

A table showing own trades (MyTrade).

Inherits: BaseGridControl

Implements: IComponentConnector

Constructors

MyTradeGrid
public MyTradeGrid()
myTradeGrid = MyTradeGrid()

Initializes a new instance of the MyTradeGrid.

Properties

MaxCount
public int MaxCount { get; set; }
value = myTradeGrid.MaxCount
myTradeGrid.MaxCount = value

The maximum number of trades to display. The -1 value means an unlimited amount. The default value is 10000.

SelectedTrade
public MyTrade SelectedTrade { get; }
value = myTradeGrid.SelectedTrade

The selected trade.

SelectedTrades
public IEnumerable<MyTrade> SelectedTrades { get; }
value = myTradeGrid.SelectedTrades

Selected trades.

Source
public IEnumerable<MyTrade> Source { get; set; }
value = myTradeGrid.Source
myTradeGrid.Source = value

External collection to display (MVVM mode); mirrored into the grid's internal thread-safe buffer so a plain view-model collection can be bound without losing the UI-thread marshalling. The high-performance alternative is to feed Trades directly; do not use both at once.

Trades
public IListEx<MyTrade> Trades { get; }
value = myTradeGrid.Trades

List of trades added to the table. High-performance mode: feed this directly.

Methods

InitializeComponent
public void InitializeComponent()
myTradeGrid.InitializeComponent()

InitializeComponent

Fields

SourceProperty
public static readonly DependencyProperty SourceProperty
value = MyTradeGrid.SourceProperty

Source dependency property.