TradeGrid
StockSharp.Xaml
The table showing tick trades (ITickTradeMessage).
Inherits: BaseGridControl
Implements: IComponentConnector
Constructors
Properties
MaxCount
public int MaxCount { get; set; }
value = tradeGrid.MaxCount
tradeGrid.MaxCount = value
The maximum number of trades to display. The -1 value means an unlimited amount. The default value is 1000000.
SelectedTrade
public ITickTradeMessage SelectedTrade { get; }
value = tradeGrid.SelectedTrade
The selected trade.
SelectedTrades
public IEnumerable<ITickTradeMessage> SelectedTrades { get; }
value = tradeGrid.SelectedTrades
Selected trades.
Source
public IEnumerable<ITickTradeMessage> Source { get; set; }
value = tradeGrid.Source
tradeGrid.Source = value
External collection to display (MVVM mode). When bound, the grid mirrors it into the internal thread-safe, MaxCount-capped buffer, so a caller can bind a plain view-model collection without losing the grid's UI-thread marshalling. The high-performance alternative is to feed Trades directly; do not use both at once.
Trades
public IListEx<ITickTradeMessage> Trades { get; }
value = tradeGrid.Trades
List of trades added to the table. High-performance mode: feed this collection directly (it is thread-safe and capped by MaxCount).
Methods
InitializeComponent
public void InitializeComponent()
tradeGrid.InitializeComponent()
InitializeComponent
Fields
SourceProperty
public static readonly DependencyProperty SourceProperty
value = TradeGrid.SourceProperty
Source dependency property.