LogControl

StockSharp.Xaml

The graphical component for logs displaying.

Inherits: UserControl

Implements: ILogListener, IPersistable, IDisposable, IComponentConnector

Constructors

LogControl()

Initializes a new instance of the LogControl.

Properties

AutoResize : bool

Automatically to align the width of the columns by content. The default is off.

AutoScroll : bool

Automatically to scroll control on the last row added. The default is off.

ClearCommand : ICommand

The command to clear log items.

Like : string

Text filter for the log messages.

MaxItemsCount : int

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.

Messages : LogMessageCollection

The log entries collection.

ShowDebug : bool

To show messages of type Debug. Enabled by default.

ShowError : bool

To show messages of type Error. Enabled by default.

ShowInfo : bool

To show messages of type Info. Enabled by default.

ShowSourceNameColumn : bool

To show the column with the source name. Enabled by default.

ShowVerbose : bool

To show messages of type Verbose. Enabled by default.

ShowWarning : bool

To show messages of type Warning. Enabled by default.

TimeFormat : string

Format for conversion time into a string. The default format is yy/MM/dd HH:mm:ss.fff.

Methods

GetLogAutoResize(UIElement) : bool

To get the value for AutoResize.

element
Object LogControl.

Returns: The value of AutoResize.

GetLogAutoScroll(UIElement) : bool

To get the value for AutoScroll.

element
Object LogControl.

Returns: The value of AutoScroll.

GetLogMaxItemsCount(UIElement) : int

To get the value for MaxItemsCount.

element
Object LogControl.

Returns: The value of MaxItemsCount.

GetLogShowSourceNameColumn(UIElement) : bool

To get the value for ShowSourceNameColumn.

element
Object LogControl.

Returns: The value of ShowSourceNameColumn.

InitializeComponent()

InitializeComponent

Load(SettingsStorage)

Load settings.

storage
Settings storage.
Save(SettingsStorage)

Save settings.

storage
Settings storage.
SetLogAutoResize(UIElement, bool)

To set the value for AutoResize.

element
Object LogControl.
value
New value for AutoResize.
SetLogAutoScroll(UIElement, bool)

To set the value for AutoScroll.

element
Object LogControl.
value
New value for AutoScroll.
SetLogMaxItemsCount(UIElement, int)

To set the value for MaxItemsCount.

element
Object LogControl.
value
New value for MaxItemsCount.
SetLogShowSourceNameColumn(UIElement, bool)

To set the value for ShowSourceNameColumn.

element
Object LogControl.
value
New value for ShowSourceNameColumn.

Events

LayoutChanged : Action

Layout changed event.

Fields

AutoResizeProperty : DependencyProperty

DependencyProperty for AutoResize.

AutoScrollProperty : DependencyProperty

DependencyProperty for AutoScroll.

ClearCommandProperty : DependencyProperty

DependencyProperty for ClearCommand.

LogAutoResizeProperty : DependencyProperty

DependencyProperty for AutoResize.

LogAutoScrollProperty : DependencyProperty

DependencyProperty for AutoScroll.

LogMaxItemsCountProperty : DependencyProperty

DependencyProperty for MaxItemsCount.

LogShowSourceNameColumnProperty : DependencyProperty

DependencyProperty for ShowSourceNameColumn.

MaxItemsCountProperty : DependencyProperty

DependencyProperty for MaxItemsCount.

MessagesProperty : DependencyProperty

DependencyProperty for Messages.

ShowDebugProperty : DependencyProperty

DependencyProperty for ShowDebug.

ShowErrorProperty : DependencyProperty

DependencyProperty for ShowError.

ShowInfoProperty : DependencyProperty

DependencyProperty for ShowInfo.

ShowSourceNameColumnProperty : DependencyProperty

DependencyProperty for ShowSourceNameColumn.

ShowVerboseProperty : DependencyProperty

DependencyProperty for ShowVerbose.

ShowWarningProperty : DependencyProperty

DependencyProperty for ShowWarning.

TimeFormatProperty : DependencyProperty

DependencyProperty for TimeFormat.