QuickOrderPanel

StockSharp.Xaml

Panel for quick orders transactions.

Inherits: UserControl

Implements: IAsyncPersistable, IComponentConnector

Constructors

QuickOrderPanel
public QuickOrderPanel()
quickOrderPanel = QuickOrderPanel()

Initializes a new instance of the QuickOrderPanel.

Properties

BuyBackground
public Brush BuyBackground { get; set; }
value = quickOrderPanel.BuyBackground
quickOrderPanel.BuyBackground = value

Buy button background.

BuyCaps
public string BuyCaps { get; }
value = quickOrderPanel.BuyCaps

BUY

Security
public Security Security { get; set; }
value = quickOrderPanel.Security
quickOrderPanel.Security = value

Security.

SellBackground
public Brush SellBackground { get; set; }
value = quickOrderPanel.SellBackground
quickOrderPanel.SellBackground = value

Sell button background.

SellCaps
public string SellCaps { get; }
value = quickOrderPanel.SellCaps

SELL

Methods

InitializeComponent
public void InitializeComponent()
quickOrderPanel.InitializeComponent()

InitializeComponent

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

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

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

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

Events

RegisterOrder
public event Action<Order> RegisterOrder
quickOrderPanel.RegisterOrder += handler

The event of the order registration.

SettingsChanged
public event Action SettingsChanged
quickOrderPanel.SettingsChanged += handler

The panel settings change event.

Fields

BuyBackgroundProperty
public static readonly DependencyProperty BuyBackgroundProperty
value = QuickOrderPanel.BuyBackgroundProperty

Buy button background.

BuyText1Property
public static readonly DependencyProperty BuyText1Property
value = QuickOrderPanel.BuyText1Property

Grey part of price on buy button.

BuyText2ColorProperty
public static readonly DependencyProperty BuyText2ColorProperty
value = QuickOrderPanel.BuyText2ColorProperty

Color of the colored buy text (green/red).

BuyText2Property
public static readonly DependencyProperty BuyText2Property
value = QuickOrderPanel.BuyText2Property

Colored part of price on buy button.

SecurityProperty
public static readonly DependencyProperty SecurityProperty
value = QuickOrderPanel.SecurityProperty

Security.

SellBackgroundProperty
public static readonly DependencyProperty SellBackgroundProperty
value = QuickOrderPanel.SellBackgroundProperty

Sell button background.

SellText1Property
public static readonly DependencyProperty SellText1Property
value = QuickOrderPanel.SellText1Property

Grey part of price on sell button.

SellText2ColorProperty
public static readonly DependencyProperty SellText2ColorProperty
value = QuickOrderPanel.SellText2ColorProperty

Color of the colored sell text (green/red).

SellText2Property
public static readonly DependencyProperty SellText2Property
value = QuickOrderPanel.SellText2Property

Colored part of price on sell button.

SpreadTextProperty
public static readonly DependencyProperty SpreadTextProperty
value = QuickOrderPanel.SpreadTextProperty

Spread text.

VolumeProperty
public static readonly DependencyProperty VolumeProperty
value = QuickOrderPanel.VolumeProperty

Selected volume value.