RiskPanel

StockSharp.Xaml

The panel for the list editing IRiskRule.

Inherits: UserControl

Implements: IAsyncPersistable, IComponentConnector

Constructors

RiskPanel
public RiskPanel()
riskPanel = RiskPanel()

Initializes a new instance of the RiskPanel.

Properties

Rules
public INotifyList<IRiskRule> Rules { get; set; }
value = riskPanel.Rules
riskPanel.Rules = value

The list of rules added to the table.

Methods

InitializeComponent
public void InitializeComponent()
riskPanel.InitializeComponent()

InitializeComponent

LoadAsync
public Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = riskPanel.LoadAsync(storage, cancellationToken)

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

SaveAsync
public Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = riskPanel.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

Events

LayoutChanged
public event Action LayoutChanged
riskPanel.LayoutChanged += handler

Layout changed event.