Table of Contents

Class Extensions

Namespace
StockSharp.Xaml
Assembly
StockSharp.Xaml.dll

Extension class.

public static class Extensions
Inheritance
Extensions
Inherited Members

Methods

Configure(BasketMessageAdapter, Window)

Configure connection using ConnectorWindow.

public static bool Configure(this BasketMessageAdapter adapter, Window owner)

Parameters

adapter BasketMessageAdapter

The connection.

owner Window

UI thread owner.

Returns

bool

true if the specified connection was configured, otherwise, false.

Configure(BasketMessageAdapter, Window, ref bool, ref SettingsStorage)

Configure connection using ConnectorWindow.

public static bool Configure(this BasketMessageAdapter adapter, Window owner, ref bool autoConnect, ref SettingsStorage windowSettings)

Parameters

adapter BasketMessageAdapter

The connection.

owner Window

UI thread owner.

autoConnect bool

Auto connect.

windowSettings SettingsStorage

ConnectorWindow settings.

Returns

bool

true if the specified connection was configured, otherwise, false.

Configure(Connector, Window)

Configure connection using ConnectorWindow.

public static bool Configure(this Connector connector, Window owner)

Parameters

connector Connector

The connection.

owner Window

UI thread owner.

Returns

bool

true if the specified connection was configured, otherwise, false.

ExcludeAllSecurity(SecurityPicker)

Exclude AllSecurity.

public static void ExcludeAllSecurity(this SecurityPicker picker)

Parameters

picker SecurityPicker

SecurityPicker.

FromStorage(SettingsStorage, Window)

Load settings.

public static void FromStorage(this SettingsStorage storage, Window window)

Parameters

storage SettingsStorage

Settings storage.

window Window

Window instance.

GetPriceTextFormat(Security)

Generate price format for the specified security.

public static string GetPriceTextFormat(this Security security)

Parameters

security Security

Security.

Returns

string

Price format.

GetProcessStateIconName(ProcessStates)

Get icon for ProcessStates.

public static string GetProcessStateIconName(this ProcessStates state)

Parameters

state ProcessStates

ProcessStates.

Returns

string

Icon name.

GetProcessStateIconName(Strategy)

Get icon for ProcessState.

public static string GetProcessStateIconName(this Strategy strategy)

Parameters

strategy Strategy

Strategy.

Returns

string

Icon name.

GetVolumeTextFormat(Security)

Generate volume format for the specified security.

public static string GetVolumeTextFormat(this Security security)

Parameters

security Security

Security.

Returns

string

Volume format.

Init(OrderWindow, Connector)

Initialize window.

public static OrderWindow Init(this OrderWindow window, Connector connector)

Parameters

window OrderWindow

The window for the order creating.

connector Connector

The class to create connections to trading systems.

Returns

OrderWindow

The window for the order creating.

LoadDevExpressControl(DependencyObject, string)

Load DevExpress control settings.

public static void LoadDevExpressControl(this DependencyObject obj, string settings)

Parameters

obj DependencyObject

Control.

settings string

Settings.

LoadLayout(DockLayoutManager, string)

Restore layout state.

public static void LoadLayout(this DockLayoutManager manager, string layout)

Parameters

manager DockLayoutManager

Represents a container for dock and layout items.

layout string

Layout encoded as a string.

Restart(Window)

Start application.

public static void Restart(this Window owner)

Parameters

owner Window

Main window.

SaveDevExpressControl(DependencyObject)

Save DevExpress control settings.

public static string SaveDevExpressControl(this DependencyObject obj)

Parameters

obj DependencyObject

Control.

Returns

string

Settings.

SaveLayout(DockLayoutManager)

Save layout state.

public static string SaveLayout(this DockLayoutManager manager)

Parameters

manager DockLayoutManager

Represents a container for dock and layout items.

Returns

string

Layout encoded as a string.

ShareAsync(DependencyObject, bool, string, Func<Stream>, CancellationToken)

Share file.

public static Task ShareAsync(this DependencyObject owner, bool isNew, string fileName, Func<Stream> getBody, CancellationToken token)

Parameters

owner DependencyObject

Owner.

isNew bool

Is file newly or updated.

fileName string

File name.

getBody Func<Stream>

File body.

token CancellationToken

Cancelation token.

Returns

Task

ToStorage(Window)

Save settings.

public static SettingsStorage ToStorage(this Window window)

Parameters

window Window

Window instance.

Returns

SettingsStorage

Settings storage.