ExchangeBoardsPanel
StockSharp.Xaml
汇兑板编辑.
继承自: UserControl
实现: IAsyncPersistable, IComponentConnector
构造函数
ExchangeBoardsPanel
public ExchangeBoardsPanel()
exchangeBoardsPanel = ExchangeBoardsPanel()
初始化了 & ##ExchangeBoardsPanel+#的新实例.
属性
Boards
public ObservableCollection<ExchangeBoard> Boards { get; }
value = exchangeBoardsPanel.Boards
板子列表.
SelectedBoardCode
public string SelectedBoardCode { get; set; }
value = exchangeBoardsPanel.SelectedBoardCode
exchangeBoardsPanel.SelectedBoardCode = value
目前正在编辑的棋盘代码 。
方法
InitializeComponent
public void InitializeComponent()
exchangeBoardsPanel.InitializeComponent()
InitializeComponent
LoadAsync
public Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = exchangeBoardsPanel.LoadAsync(storage, cancellationToken)
Load settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
返回值: Task
SaveAsync
public Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = exchangeBoardsPanel.SaveAsync(storage, cancellationToken)
Save settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
返回值: Task
SetBoardCode
public void SetBoardCode(string boardCode)
exchangeBoardsPanel.SetBoardCode(boardCode)
以设置会板进行编辑.
- boardCode
- 编辑板代码。编辑板由 EntityRegistry 的代码加载 。
事件
字段
SelectedBoardCodeProperty
public static readonly DependencyProperty SelectedBoardCodeProperty
value = ExchangeBoardsPanel.SelectedBoardCodeProperty
DependencyProperty 为SelectedBoardCode.