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
- adapterBasketMessageAdapter
- The connection. 
- ownerWindow
- UI 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
- adapterBasketMessageAdapter
- The connection. 
- ownerWindow
- UI thread owner. 
- autoConnectbool
- Auto connect. 
- windowSettingsSettingsStorage
- ConnectorWindow 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
- fileExtstring
- File extension. 
Returns
- string
- Logo name. 
FromStorage(SettingsStorage, Window)
Load settings.
public static void FromStorage(this SettingsStorage storage, Window window)Parameters
- storageSettingsStorage
- Settings storage. 
- windowWindow
- Window instance. 
GetPriceTextFormat(Security)
Generate price format for the specified security.
public static string GetPriceTextFormat(this Security security)Parameters
- securitySecurity
- Security. 
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
- securitySecurity
- Security. 
Returns
- string
- Volume format. 
Init(OrderWindow, Connector)
Initialize window.
public static OrderWindow Init(this OrderWindow window, Connector connector)Parameters
- windowOrderWindow
- The window for the order creating. 
- connectorConnector
- 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
- objDependencyObject
- Control. 
- settingsstring
- Settings. 
LoadLayout(DockLayoutManager, string)
Restore layout state.
public static void LoadLayout(this DockLayoutManager manager, string layout)Parameters
- managerDockLayoutManager
- Represents a container for dock and layout items. 
- layoutstring
- Layout encoded as a string. 
Restart(Window)
Start application.
public static void Restart(this Window owner)Parameters
- ownerWindow
- Main window. 
SaveDevExpressControl(DependencyObject)
Save DevExpress control settings.
public static string SaveDevExpressControl(this DependencyObject obj)Parameters
- objDependencyObject
- Control. 
Returns
- string
- Settings. 
SaveLayout(DockLayoutManager)
Save layout state.
public static string SaveLayout(this DockLayoutManager manager)Parameters
- managerDockLayoutManager
- 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
- ownerDependencyObject
- Owner. 
- isNewbool
- Is file newly or updated. 
- fileNamestring
- File name. 
- getBodyFunc<Stream>
- File body. 
- tokenCancellationToken
- Cancelation 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 : IPersistableParameters
- settingsTSettings
- Settings. 
- ownerDependencyObject
- UI thread owner. 
- docUrlstring
- Documentation URL. 
Returns
Type Parameters
- TSettings
- Type of settings. 
ToStorage(Window)
Save settings.
public static SettingsStorage ToStorage(this Window window)Parameters
- windowWindow
- Window instance. 
Returns
- SettingsStorage
- Settings storage.