Table of Contents

Class LogControl

Namespace
StockSharp.Xaml
Assembly
StockSharp.Xaml.dll

The graphical component for logs displaying.

public class LogControl : UserControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, ILogListener, IPersistable, IDisposable, IComponentConnector
Inheritance
LogControl
Implements
IPersistable
Inherited Members
Extension Methods

Constructors

LogControl()

Initializes a new instance of the LogControl.

public LogControl()

Fields

AutoResizeProperty

public static readonly DependencyProperty AutoResizeProperty

Field Value

DependencyProperty

AutoScrollProperty

public static readonly DependencyProperty AutoScrollProperty

Field Value

DependencyProperty

ClearCommandProperty

public static readonly DependencyProperty ClearCommandProperty

Field Value

DependencyProperty

LogAutoResizeProperty

public static readonly DependencyProperty LogAutoResizeProperty

Field Value

DependencyProperty

LogAutoScrollProperty

public static readonly DependencyProperty LogAutoScrollProperty

Field Value

DependencyProperty

LogMaxItemsCountProperty

public static readonly DependencyProperty LogMaxItemsCountProperty

Field Value

DependencyProperty

LogShowSourceNameColumnProperty

public static readonly DependencyProperty LogShowSourceNameColumnProperty

Field Value

DependencyProperty

MaxItemsCountProperty

public static readonly DependencyProperty MaxItemsCountProperty

Field Value

DependencyProperty

MessagesProperty

public static readonly DependencyProperty MessagesProperty

Field Value

DependencyProperty

ShowDebugProperty

public static readonly DependencyProperty ShowDebugProperty

Field Value

DependencyProperty

ShowErrorProperty

public static readonly DependencyProperty ShowErrorProperty

Field Value

DependencyProperty

ShowInfoProperty

public static readonly DependencyProperty ShowInfoProperty

Field Value

DependencyProperty

ShowSourceNameColumnProperty

public static readonly DependencyProperty ShowSourceNameColumnProperty

Field Value

DependencyProperty

ShowVerboseProperty

public static readonly DependencyProperty ShowVerboseProperty

Field Value

DependencyProperty

ShowWarningProperty

public static readonly DependencyProperty ShowWarningProperty

Field Value

DependencyProperty

TimeFormatProperty

public static readonly DependencyProperty TimeFormatProperty

Field Value

DependencyProperty

Properties

AutoResize

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

public bool AutoResize { get; set; }

Property Value

bool

AutoScroll

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

public bool AutoScroll { get; set; }

Property Value

bool

ClearCommand

The command to clear log items.

public ICommand ClearCommand { get; set; }

Property Value

ICommand

Like

Text filter for the log messages.

public string Like { get; set; }

Property Value

string

MaxItemsCount

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.

public int MaxItemsCount { get; set; }

Property Value

int

Messages

The log entries collection.

public LogMessageCollection Messages { get; set; }

Property Value

LogMessageCollection

ShowDebug

To show messages of type Debug. Enabled by default.

public bool ShowDebug { get; set; }

Property Value

bool

ShowError

To show messages of type Error. Enabled by default.

public bool ShowError { get; set; }

Property Value

bool

ShowInfo

To show messages of type Info. Enabled by default.

public bool ShowInfo { get; set; }

Property Value

bool

ShowSourceNameColumn

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

public bool ShowSourceNameColumn { get; set; }

Property Value

bool

ShowVerbose

To show messages of type Verbose. Enabled by default.

public bool ShowVerbose { get; set; }

Property Value

bool

ShowWarning

To show messages of type Warning. Enabled by default.

public bool ShowWarning { get; set; }

Property Value

bool

TimeFormat

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

public string TimeFormat { get; set; }

Property Value

string

Methods

GetLogAutoResize(UIElement)

To get the value for AutoResize.

public static bool GetLogAutoResize(UIElement element)

Parameters

element UIElement

Object LogControl.

Returns

bool

The value of AutoResize.

GetLogAutoScroll(UIElement)

To get the value for AutoScroll.

public static bool GetLogAutoScroll(UIElement element)

Parameters

element UIElement

Object LogControl.

Returns

bool

The value of AutoScroll.

GetLogMaxItemsCount(UIElement)

To get the value for MaxItemsCount.

public static int GetLogMaxItemsCount(UIElement element)

Parameters

element UIElement

Object LogControl.

Returns

int

The value of MaxItemsCount.

GetLogShowSourceNameColumn(UIElement)

To get the value for ShowSourceNameColumn.

public static bool GetLogShowSourceNameColumn(UIElement element)

Parameters

element UIElement

Object LogControl.

Returns

bool

The value of ShowSourceNameColumn.

InitializeComponent()

InitializeComponent

public void InitializeComponent()

Load(SettingsStorage)

Load settings.

public void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

Save(SettingsStorage)

Save settings.

public void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

SetLogAutoResize(UIElement, bool)

To set the value for AutoResize.

public static void SetLogAutoResize(UIElement element, bool value)

Parameters

element UIElement

Object LogControl.

value bool

New value for AutoResize.

SetLogAutoScroll(UIElement, bool)

To set the value for AutoScroll.

public static void SetLogAutoScroll(UIElement element, bool value)

Parameters

element UIElement

Object LogControl.

value bool

New value for AutoScroll.

SetLogMaxItemsCount(UIElement, int)

To set the value for MaxItemsCount.

public static void SetLogMaxItemsCount(UIElement element, int value)

Parameters

element UIElement

Object LogControl.

value int

New value for MaxItemsCount.

SetLogShowSourceNameColumn(UIElement, bool)

To set the value for ShowSourceNameColumn.

public static void SetLogShowSourceNameColumn(UIElement element, bool value)

Parameters

element UIElement

Object LogControl.

value bool

New value for ShowSourceNameColumn.

Events

LayoutChanged

Layout changed event.

public event Action LayoutChanged

Event Type

Action