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
BasketMessageAdapterThe connection.
owner
WindowUI thread owner.
Returns
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
BasketMessageAdapterThe connection.
owner
WindowUI thread owner.
autoConnect
boolAuto connect.
windowSettings
SettingsStorageConnectorWindow settings.
Returns
Configure(Connector, Window)
Configure connection using ConnectorWindow.
public static bool Configure(this Connector connector, Window owner)
Parameters
Returns
ExcludeAllSecurity(SecurityPicker)
Exclude AllSecurity.
public static void ExcludeAllSecurity(this SecurityPicker picker)
Parameters
picker
SecurityPicker
FromStorage(SettingsStorage, Window)
Load settings.
public static void FromStorage(this SettingsStorage storage, Window window)
Parameters
storage
SettingsStorageSettings storage.
window
WindowWindow instance.
GetPriceTextFormat(Security)
Generate price format for the specified security.
public static string GetPriceTextFormat(this Security security)
Parameters
security
SecuritySecurity.
Returns
- string
Price format.
GetProcessStateIconName(ProcessStates)
Get icon for ProcessStates.
public static string GetProcessStateIconName(this ProcessStates state)
Parameters
state
ProcessStates
Returns
- string
Icon name.
GetProcessStateIconName(Strategy)
Get icon for ProcessState.
public static string GetProcessStateIconName(this Strategy strategy)
Parameters
Returns
- string
Icon name.
GetVolumeTextFormat(Security)
Generate volume format for the specified security.
public static string GetVolumeTextFormat(this Security security)
Parameters
security
SecuritySecurity.
Returns
- string
Volume format.
Init(OrderWindow, Connector)
Initialize window
.
public static OrderWindow Init(this OrderWindow window, Connector connector)
Parameters
window
OrderWindowThe window for the order creating.
connector
ConnectorThe 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
DependencyObjectControl.
settings
stringSettings.
LoadLayout(DockLayoutManager, string)
Restore layout state.
public static void LoadLayout(this DockLayoutManager manager, string layout)
Parameters
manager
DockLayoutManagerRepresents a container for dock and layout items.
layout
stringLayout encoded as a string.
Restart(Window)
Start application.
public static void Restart(this Window owner)
Parameters
owner
WindowMain window.
SaveDevExpressControl(DependencyObject)
Save DevExpress control settings.
public static string SaveDevExpressControl(this DependencyObject obj)
Parameters
obj
DependencyObjectControl.
Returns
- string
Settings.
SaveLayout(DockLayoutManager)
Save layout state.
public static string SaveLayout(this DockLayoutManager manager)
Parameters
manager
DockLayoutManagerRepresents 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
DependencyObjectOwner.
isNew
boolIs file newly or updated.
fileName
stringFile name.
getBody
Func<Stream>File body.
token
CancellationTokenCancelation token.
Returns
ToStorage(Window)
Save settings.
public static SettingsStorage ToStorage(this Window window)
Parameters
window
WindowWindow instance.
Returns
- SettingsStorage
Settings storage.