MarketDepthControl

StockSharp.Xaml

以引文显示订单本的视觉控制(IOrderBookMessage.

继承自: BaseGridControl

实现: IComponentConnector

构造函数

MarketDepthControl
public MarketDepthControl()
marketDepthControl = MarketDepthControl()

初始化了 & ##MarketDepthControl+#的新实例.

属性

AllowOwnOrderDragDrop
public bool AllowOwnOrderDragDrop { get; set; }
value = marketDepthControl.AllowOwnOrderDragDrop
marketDepthControl.AllowOwnOrderDragDrop = value

允许自己命令拖放 。

AllowSpreadToMove
public bool AllowSpreadToMove { get; set; }
value = marketDepthControl.AllowSpreadToMove
marketDepthControl.AllowSpreadToMove = value

获取或设置一个值,表示是否允许扩展。当 时,扩展可以上下移动。当 时,扩展会停留在中间。

AnimationDuration
public TimeSpan AnimationDuration { get; set; }
value = marketDepthControl.AnimationDuration
marketDepthControl.AnimationDuration = value

动画持续时间.

AutoUpdateFormat
public bool AutoUpdateFormat { get; set; }
value = marketDepthControl.AutoUpdateFormat
marketDepthControl.AutoUpdateFormat = value

自动更新金融工具格式。默认情况下,该格式已打开。

CancelAnimationColor
public Color CancelAnimationColor { get; set; }
value = marketDepthControl.CancelAnimationColor
marketDepthControl.CancelAnimationColor = value

取消动画颜色 。

DepthData
public IOrderBookMessage DepthData { get; set; }
value = marketDepthControl.DepthData
marketDepthControl.DepthData = value

绑定深度数据。 设置此属性可更新命令书显示 。

DepthSecurity
public Security DepthSecurity { get; set; }
value = marketDepthControl.DepthSecurity
marketDepthControl.DepthSecurity = value

深度数据约束金融工具。

ErrorAnimationColor
public Color ErrorAnimationColor { get; set; }
value = marketDepthControl.ErrorAnimationColor
marketDepthControl.ErrorAnimationColor = value

错误的动画颜色 。

FillBuyAnimationColor
public Color FillBuyAnimationColor { get; set; }
value = marketDepthControl.FillBuyAnimationColor
marketDepthControl.FillBuyAnimationColor = value

填充购买动画颜色 。

FillSellAnimationColor
public Color FillSellAnimationColor { get; set; }
value = marketDepthControl.FillSellAnimationColor
marketDepthControl.FillSellAnimationColor = value

充入销售动画色彩.

FillTextAnimationColor
public Color FillTextAnimationColor { get; set; }
value = marketDepthControl.FillTextAnimationColor
marketDepthControl.FillTextAnimationColor = value

填入文字颜色.

GroupRange
public decimal? GroupRange { get; set; }
value = marketDepthControl.GroupRange
marketDepthControl.GroupRange = value

十进制范围 。

IsBidsOnTop
public bool IsBidsOnTop { get; set; }
value = marketDepthControl.IsBidsOnTop
marketDepthControl.IsBidsOnTop = value

是否显示上面的出价。 默认已关闭 。

IsOwnOrderDragging
public bool IsOwnOrderDragging { get; private set; }
value = marketDepthControl.IsOwnOrderDragging
marketDepthControl.IsOwnOrderDragging = value

如果用户拖曳命令, 则为真 。

MaxBuyVolume
public decimal MaxBuyVolume { get; set; }
value = marketDepthControl.MaxBuyVolume
marketDepthControl.MaxBuyVolume = value

所有出价的最大数量。

MaxDepth
public int MaxDepth { get; set; }
value = marketDepthControl.MaxDepth
marketDepthControl.MaxDepth = value

命令簿显示的最大深度。默认值为 DefaultDepth 。

MaxSellVolume
public decimal MaxSellVolume { get; set; }
value = marketDepthControl.MaxSellVolume
marketDepthControl.MaxSellVolume = value

所问所出之最大量.

MaxVolume
public decimal MaxVolume { get; set; }
value = marketDepthControl.MaxVolume
marketDepthControl.MaxVolume = value

所有引出之所出出之所出之所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所

PriceTextFormat
public string PriceTextFormat { get; set; }
value = marketDepthControl.PriceTextFormat
marketDepthControl.PriceTextFormat = value

价格格式。

RegisterAnimationColor
public Color RegisterAnimationColor { get; set; }
value = marketDepthControl.RegisterAnimationColor
marketDepthControl.RegisterAnimationColor = value

注册动画颜色.

RegisterOrderOn
public MarketDepthExecuteOn RegisterOrderOn { get; set; }
value = marketDepthControl.RegisterOrderOn
marketDepthControl.RegisterOrderOn = value

执行命令登记触发器 。

SelectedQuote
public QuoteChange? SelectedQuote { get; }
value = marketDepthControl.SelectedQuote

所选引文.

ShowBoardColumn
public bool ShowBoardColumn { get; set; }
value = marketDepthControl.ShowBoardColumn
marketDepthControl.ShowBoardColumn = value

显示棋盘栏 。

ShowOwnVolumeColumns
public bool ShowOwnVolumeColumns { get; set; }
value = marketDepthControl.ShowOwnVolumeColumns
marketDepthControl.ShowOwnVolumeColumns = value

显示自己的音量列 。

ShowSingleVolumeColumn
public bool ShowSingleVolumeColumn { get; set; }
value = marketDepthControl.ShowSingleVolumeColumn
marketDepthControl.ShowSingleVolumeColumn = value

显示单卷列。默认值为 。

SparseRange
public decimal? SparseRange { get; set; }
value = marketDepthControl.SparseRange
marketDepthControl.SparseRange = value

距离Int32, 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离: 距离为: 距离为: 距离: 距离为距: 距离为距: 距离为距: 距离为距: 距离为距: 距离为距为距为距为距为距为距: 距离为距为距为距为距为: 距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距

UseOrderAnimations
public bool UseOrderAnimations { get; set; }
value = marketDepthControl.UseOrderAnimations
marketDepthControl.UseOrderAnimations = value

用户拥有订单状态动画.

VolumeTextFormat
public string VolumeTextFormat { get; set; }
value = marketDepthControl.VolumeTextFormat
marketDepthControl.VolumeTextFormat = value

卷出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出

方法

CancelOrders
public void CancelOrders(Func<Order, bool> predicate)
marketDepthControl.CancelOrders(predicate)

取消添加到此实例的 & ###MarketDepthControl\\\\\\ 命令。 这种方法本身并不取消命令, 它只是通知订阅者 & ##CancelingOrder\\ 事件 。

Clear
public void Clear()
marketDepthControl.Clear()

以清出所取之令书.

GetColumnIndex
public MarketDepthColumns GetColumnIndex(GridColumn column)
result = marketDepthControl.GetColumnIndex(column)

以得到列类型按单元格。

column
栏.

返回值: 专栏类型.

GetOrders
public IEnumerable<Order> GetOrders(decimal price, Sides? side, OrderTypes? type)
result = marketDepthControl.GetOrders(price, side, type)

以指定标准获取活动命令 。

price
订价.
side
订购方(买卖)。
type
秩序类型。

返回值: 找到命令了 找到命令了 找到命令了

InitializeComponent
public void InitializeComponent()
marketDepthControl.InitializeComponent()

InitializeComponent

OnLostMouseCapture
protected override void OnLostMouseCapture(MouseEventArgs e)
marketDepthControl.OnLostMouseCapture(e)

处理鼠标捕获丢失时的事件 。

e
OnPreviewKeyDown
protected override void OnPreviewKeyDown(KeyEventArgs e)
marketDepthControl.OnPreviewKeyDown(e)
ProcessOrder
public void ProcessOrder(Order order, decimal price, decimal balance, OrderStates state)
marketDepthControl.ProcessOrder(order, price, balance, state)

处理一个命令。

order
肃静
price
订价.
balance
订单合同余额。
state
令发相相.
ProcessOrderFail
public void ProcessOrderFail(OrderFail fail, OrderStates state)
marketDepthControl.ProcessOrderFail(fail, state)

处理命令登记/移动/取消失败。

ShowOrderFill
public void ShowOrderFill(Sides side, decimal price, decimal volume)
marketDepthControl.ShowOrderFill(side, price, volume)

显示顺序填充动画 。

UpdateDepth
public void UpdateDepth(IOrderBookMessage message, Security security)
marketDepthControl.UpdateDepth(message, security)

以续订出.

message
市场深度.
security
金融工具。
UpdateFormat
public void UpdateFormat(Security security)
marketDepthControl.UpdateFormat(security)

更新PriceTextFormat和VolumeTextFormat.

security
金融工具。

事件

CancelingOrder
public event Action<Order> CancelingOrder
marketDepthControl.CancelingOrder += handler

取消订单 。

MovingOrder
public event Action<Order, decimal> MovingOrder
marketDepthControl.MovingOrder += handler

向新价位移动

RegisteringOrder
public event Action<Sides, decimal> RegisteringOrder
marketDepthControl.RegisteringOrder += handler

登记令.

SelectedQuoteChanged
public event Action<QuoteChange?> SelectedQuoteChanged
marketDepthControl.SelectedQuoteChanged += handler

SelectedQuote changed event.

字段

AllowOwnOrderDragDropProperty
public static readonly DependencyProperty AllowOwnOrderDragDropProperty
value = MarketDepthControl.AllowOwnOrderDragDropProperty

DependencyProperty 为AllowOwnOrderDragDrop.

AllowSpreadToMoveProperty
public static readonly DependencyProperty AllowSpreadToMoveProperty
value = MarketDepthControl.AllowSpreadToMoveProperty

DependencyProperty 为AllowSpreadToMove.

AnimationDurationProperty
public static readonly DependencyProperty AnimationDurationProperty
value = MarketDepthControl.AnimationDurationProperty

动画持续时间.

CancelAnimationColorProperty
public static readonly DependencyProperty CancelAnimationColorProperty
value = MarketDepthControl.CancelAnimationColorProperty

取消动画颜色 。

DefaultDepth
public const int DefaultDepth
value = MarketDepthControl.DefaultDepth

默认最大深度为 20 。

DepthDataProperty
public static readonly DependencyProperty DepthDataProperty
value = MarketDepthControl.DepthDataProperty

DependencyProperty 为DepthData.

DepthSecurityProperty
public static readonly DependencyProperty DepthSecurityProperty
value = MarketDepthControl.DepthSecurityProperty

DependencyProperty 为DepthSecurity.

ErrorAnimationColorProperty
public static readonly DependencyProperty ErrorAnimationColorProperty
value = MarketDepthControl.ErrorAnimationColorProperty

错误的动画颜色 。

FillBuyAnimationColorProperty
public static readonly DependencyProperty FillBuyAnimationColorProperty
value = MarketDepthControl.FillBuyAnimationColorProperty

填充购买动画颜色 。

FillSellAnimationColorProperty
public static readonly DependencyProperty FillSellAnimationColorProperty
value = MarketDepthControl.FillSellAnimationColorProperty

充入销售动画色彩.

FillTextAnimationColorProperty
public static readonly DependencyProperty FillTextAnimationColorProperty
value = MarketDepthControl.FillTextAnimationColorProperty

填入文字颜色.

GroupCommand
public static readonly RoutedCommand GroupCommand
value = MarketDepthControl.GroupCommand

集团市场深度指令.

GroupRangeProperty
public static readonly DependencyProperty GroupRangeProperty
value = MarketDepthControl.GroupRangeProperty

DependencyProperty 为GroupRange.

GroupResetCommand
public static readonly RoutedCommand GroupResetCommand
value = MarketDepthControl.GroupResetCommand

重置分组市场深度的命令 。

IsBidsOnTopProperty
public static readonly DependencyProperty IsBidsOnTopProperty
value = MarketDepthControl.IsBidsOnTopProperty

DependencyProperty 为IsBidsOnTop.

IsOwnOrderDraggingKey
public static readonly DependencyPropertyKey IsOwnOrderDraggingKey
value = MarketDepthControl.IsOwnOrderDraggingKey

如果用户拖曳命令, 则为真 。

MaxBuyVolumeProperty
public static readonly DependencyProperty MaxBuyVolumeProperty
value = MarketDepthControl.MaxBuyVolumeProperty

DependencyProperty 为MaxBuyVolume.

MaxDepthProperty
public static readonly DependencyProperty MaxDepthProperty
value = MarketDepthControl.MaxDepthProperty

DependencyProperty 为MaxDepth.

MaxSellVolumeProperty
public static readonly DependencyProperty MaxSellVolumeProperty
value = MarketDepthControl.MaxSellVolumeProperty

DependencyProperty 为MaxSellVolume.

MaxVolumeProperty
public static readonly DependencyProperty MaxVolumeProperty
value = MarketDepthControl.MaxVolumeProperty

DependencyProperty 为MaxVolume.

PriceTextFormatProperty
public static readonly DependencyProperty PriceTextFormatProperty
value = MarketDepthControl.PriceTextFormatProperty

DependencyProperty 为PriceTextFormat.

RegisterAnimationColorProperty
public static readonly DependencyProperty RegisterAnimationColorProperty
value = MarketDepthControl.RegisterAnimationColorProperty

注册动画颜色.

RegisterOrderOnProperty
public static readonly DependencyProperty RegisterOrderOnProperty
value = MarketDepthControl.RegisterOrderOnProperty

执行命令登记触发器 。

ShowBoardColumnProperty
public static readonly DependencyProperty ShowBoardColumnProperty
value = MarketDepthControl.ShowBoardColumnProperty

DependencyProperty 为ShowBoardColumn.

ShowOwnVolumeColumnsProperty
public static readonly DependencyProperty ShowOwnVolumeColumnsProperty
value = MarketDepthControl.ShowOwnVolumeColumnsProperty

DependencyProperty 为ShowOwnVolumeColumns.

ShowSingleVolumeColumnProperty
public static readonly DependencyProperty ShowSingleVolumeColumnProperty
value = MarketDepthControl.ShowSingleVolumeColumnProperty

DependencyProperty 为ShowSingleVolumeColumn.

SparseCommand
public static readonly RoutedCommand SparseCommand
value = MarketDepthControl.SparseCommand

命令市场深度稀疏。

SparseRangeProperty
public static readonly DependencyProperty SparseRangeProperty
value = MarketDepthControl.SparseRangeProperty

DependencyProperty 为SparseRange.

SparseResetCommand
public static readonly RoutedCommand SparseResetCommand
value = MarketDepthControl.SparseResetCommand

重置垃圾邮件市场深度的命令 。

UseOrderAnimationsProperty
public static readonly DependencyProperty UseOrderAnimationsProperty
value = MarketDepthControl.UseOrderAnimationsProperty

DependencyProperty 为UseOrderAnimations.

VolumeTextFormatProperty
public static readonly DependencyProperty VolumeTextFormatProperty
value = MarketDepthControl.VolumeTextFormatProperty

DependencyProperty 为VolumeTextFormat.