OrderGrid

StockSharp.Xaml

The table showing orders (Order).

Inherits: BaseGridControl

Implements: IComponentConnector

Constructors

OrderGrid
public OrderGrid()
orderGrid = OrderGrid()

Initializes a new instance of the OrderGrid.

Properties

IsInteractive
public bool IsInteractive { get; set; }
value = orderGrid.IsInteractive
orderGrid.IsInteractive = value

Interactive mode.

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

The maximum number of orders to display. The -1 value means unlimited amount. The default is 100000.

Orders
public IListEx<Order> Orders { get; }
value = orderGrid.Orders

The list of orders that have been added to the table. High-performance mode: feed this directly.

SelectedOrder
public Order SelectedOrder { get; }
value = orderGrid.SelectedOrder

The selected order.

SelectedOrders
public IEnumerable<Order> SelectedOrders { get; }
value = orderGrid.SelectedOrders

Selected orders.

Source
public IEnumerable<Order> Source { get; set; }
value = orderGrid.Source
orderGrid.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 Orders directly; do not use both at once.

Methods

AddRegistrationFail
public void AddRegistrationFail(OrderFail fail)
orderGrid.AddRegistrationFail(fail)

To add a description of the registration error to the table.

fail
Error.
InitializeComponent
public void InitializeComponent()
orderGrid.InitializeComponent()

InitializeComponent

OnOrderAdded
protected virtual void OnOrderAdded(Order order)
orderGrid.OnOrderAdded(order)

The method is called when a new order added.

order
Order.
RaiseSelectionChanged
protected override void RaiseSelectionChanged(GridSelectionChangedEventArgs e)
orderGrid.RaiseSelectionChanged(e)

Raise SelectedOrderChanged event.

e

Events

OrderCanceling
public event Action<Order> OrderCanceling
orderGrid.OrderCanceling += handler

The selected order cancel event.

OrderRegistering
public event Action OrderRegistering
orderGrid.OrderRegistering += handler

The order registration event.

OrderReRegistering
public event Action<Order> OrderReRegistering
orderGrid.OrderReRegistering += handler

The order re-registration event.

OrdersCanceling
public event Action<IEnumerable<Order>> OrdersCanceling
orderGrid.OrdersCanceling += handler

The selected orders cancel event.

SelectedOrderChanged
public event Action SelectedOrderChanged
orderGrid.SelectedOrderChanged += handler

Selected order changed.

Fields

CancelOrderCommand
public static readonly RoutedCommand CancelOrderCommand
value = OrderGrid.CancelOrderCommand

The command for the cancel of selected orders.

CopyErrorCommand
public static readonly RoutedCommand CopyErrorCommand
value = OrderGrid.CopyErrorCommand

The command for the copying of the error text.

RegisterOrderCommand
public static readonly RoutedCommand RegisterOrderCommand
value = OrderGrid.RegisterOrderCommand

The command for the order registration.

ReRegisterOrderCommand
public static readonly RoutedCommand ReRegisterOrderCommand
value = OrderGrid.ReRegisterOrderCommand

The command for the order re-registration.

SourceProperty
public static readonly DependencyProperty SourceProperty
value = OrderGrid.SourceProperty

Source dependency property.