Extensions

StockSharp.Xaml

Extension class.

方法

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

Configure connection using ConnectorWindow.

adapter
The connection.
owner
UI thread owner.
autoConnect
Auto connect.
windowSettings
ConnectorWindow settings.

返回值: if the specified connection was configured, otherwise, .

Configure(BasketMessageAdapter, Window) : bool

Configure connection using ConnectorWindow.

adapter
The connection.
owner
UI thread owner.

返回值: if the specified connection was configured, otherwise, .

Configure(Connector, Window) : bool

Configure connection using ConnectorWindow.

connector
The connection.
owner
UI thread owner.

返回值: if the specified connection was configured, otherwise, .

ExcludeAllSecurity(SecurityPicker)

Exclude AllSecurity.

picker
SecurityPicker.
ExtToLogo(string) : string

Get icon for the specified file extension.

fileExt
File extension.

返回值: Logo name.

FromStorage(SettingsStorage, Window)

Load settings.

storage
Settings storage.
window
Window instance.
GetPriceTextFormat(Security) : string

Generate price format for the specified security.

security
Security.

返回值: Price format.

GetProcessStateIconName(Strategy) : string

Get icon for ProcessState.

strategy
Strategy.

返回值: Icon name.

GetProcessStateIconName(ProcessStates) : string

Get icon for ProcessStates.

state
ProcessStates.

返回值: Icon name.

GetVolumeTextFormat(Security) : string

Generate volume format for the specified security.

security
Security.

返回值: Volume format.

Init(OrderWindow, Connector) : OrderWindow

Initialize .

window
The window for the order creating.
connector
The class to create connections to trading systems.

返回值: The window for the order creating.

LoadDevExpressControl(DependencyObject, string)

Load DevExpress control settings.

obj
Control.
settings
Settings.
LoadLayout(DockLayoutManager, string)

Restore layout state.

manager
Represents a container for dock and layout items.
layout
Layout encoded as a string.
Restart(Window)

Start application.

owner
Main window.
SaveDevExpressControl(DependencyObject) : string

Save DevExpress control settings.

obj
Control.

返回值: Settings.

SaveLayout(DockLayoutManager) : string

Save layout state.

manager
Represents a container for dock and layout items.

返回值: Layout encoded as a string.

ShareAsync(DependencyObject, bool, TimeSpan?, string, Func<Stream>, CancellationToken) : Task

Share file.

owner
Owner.
isNew
Is file newly or updated.
expiresIn
Expiration time span.
fileName
File name.
getBody
File body.
token
Cancelation token.
ShowSettingsWindow``1(T, DependencyObject, string)

Show SettingsWindow to edit settings.

settings
Settings.
owner
UI thread owner.
docUrl
Documentation URL.

返回值: , if settings were changed, otherwise, .

ToStorage(Window) : SettingsStorage

Save settings.

window
Window instance.

返回值: Settings storage.