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
adapterBasketMessageAdapterThe connection.
ownerWindowUI 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
adapterBasketMessageAdapterThe connection.
ownerWindowUI thread owner.
autoConnectboolAuto connect.
windowSettingsSettingsStorageConnectorWindow 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
pickerSecurityPicker
ExtToLogo(string)
Get icon for the specified file extension.
public static string ExtToLogo(this string fileExt)
Parameters
fileExtstringFile extension.
Returns
- string
Logo name.
FromStorage(SettingsStorage, Window)
Load settings.
public static void FromStorage(this SettingsStorage storage, Window window)
Parameters
storageSettingsStorageSettings storage.
windowWindowWindow instance.
GetPriceTextFormat(Security)
Generate price format for the specified security.
public static string GetPriceTextFormat(this Security security)
Parameters
securitySecuritySecurity.
Returns
- string
Price format.
GetProcessStateIconName(ProcessStates)
Get icon for ProcessStates.
public static string GetProcessStateIconName(this ProcessStates state)
Parameters
stateProcessStates
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
securitySecuritySecurity.
Returns
- string
Volume format.
Init(OrderWindow, Connector)
Initialize window.
public static OrderWindow Init(this OrderWindow window, Connector connector)
Parameters
windowOrderWindowThe window for the order creating.
connectorConnectorThe 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
objDependencyObjectControl.
settingsstringSettings.
LoadLayout(DockLayoutManager, string)
Restore layout state.
public static void LoadLayout(this DockLayoutManager manager, string layout)
Parameters
managerDockLayoutManagerRepresents a container for dock and layout items.
layoutstringLayout encoded as a string.
Restart(Window)
Start application.
public static void Restart(this Window owner)
Parameters
ownerWindowMain window.
SaveDevExpressControl(DependencyObject)
Save DevExpress control settings.
public static string SaveDevExpressControl(this DependencyObject obj)
Parameters
objDependencyObjectControl.
Returns
- string
Settings.
SaveLayout(DockLayoutManager)
Save layout state.
public static string SaveLayout(this DockLayoutManager manager)
Parameters
managerDockLayoutManagerRepresents 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
ownerDependencyObjectOwner.
isNewboolIs file newly or updated.
fileNamestringFile name.
getBodyFunc<Stream>File body.
tokenCancellationTokenCancelation token.
Returns
ShowSettingsWindow<TSettings>(TSettings, DependencyObject, string)
Show SettingsWindow to edit settings.
public static bool ShowSettingsWindow<TSettings>(this TSettings settings, DependencyObject owner, string docUrl = null) where TSettings : IPersistable
Parameters
settingsTSettingsSettings.
ownerDependencyObjectUI thread owner.
docUrlstringDocumentation URL.
Returns
Type Parameters
TSettingsType of settings.
ToStorage(Window)
Save settings.
public static SettingsStorage ToStorage(this Window window)
Parameters
windowWindowWindow instance.
Returns
- SettingsStorage
Settings storage.