Monitor
StockSharp.Xaml
The component for trading strategies work monitoring.
Inherits: UserControl
Implements: ILogListener, IPersistable, IDisposable, IComponentConnector
Constructors
Properties
LogControl
public LogControl LogControl { get; }
value = monitor.LogControl
The graphical component for logs displaying.
MaxItemsCount
public int MaxItemsCount { get; set; }
value = monitor.MaxItemsCount
monitor.MaxItemsCount = value
The maximum number of entries to display. The -1 value means an unlimited amount of records. By default, the last 10000 records for 64-bit process and 1000 records for 32-bit process are displayed.
ShowStrategies
public bool ShowStrategies { get; set; }
value = monitor.ShowStrategies
monitor.ShowStrategies = value
To show the 'Strategy' node. Enabled by default.
Methods
InitializeComponent
public void InitializeComponent()
monitor.InitializeComponent()
InitializeComponent
Load
public void Load(SettingsStorage storage)
monitor.Load(storage)
Load settings.
- storage
- Settings storage.
Save
public void Save(SettingsStorage storage)
monitor.Save(storage)
Save settings.
- storage
- Settings storage.
WriteMessages
public void WriteMessages(IEnumerable<LogMessage> messages)
monitor.WriteMessages(messages)
Events
LayoutChanged
public event Action LayoutChanged
monitor.LayoutChanged += handler
Layout changed event.
Fields
ClearCommand
public static readonly RoutedCommand ClearCommand
value = Monitor.ClearCommand
Command for clear logs.
MaxItemsCountProperty
public static readonly DependencyProperty MaxItemsCountProperty
value = Monitor.MaxItemsCountProperty
DependencyProperty for MaxItemsCount.
ShowStrategiesProperty
public static readonly DependencyProperty ShowStrategiesProperty
value = Monitor.ShowStrategiesProperty
DependencyProperty for ShowStrategies.