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
AutoScrollProperty
public static readonly DependencyProperty AutoScrollProperty
Field Value
ClearCommandProperty
public static readonly DependencyProperty ClearCommandProperty
Field Value
LogAutoResizeProperty
public static readonly DependencyProperty LogAutoResizeProperty
Field Value
LogAutoScrollProperty
public static readonly DependencyProperty LogAutoScrollProperty
Field Value
LogMaxItemsCountProperty
public static readonly DependencyProperty LogMaxItemsCountProperty
Field Value
LogShowSourceNameColumnProperty
public static readonly DependencyProperty LogShowSourceNameColumnProperty
Field Value
MaxItemsCountProperty
public static readonly DependencyProperty MaxItemsCountProperty
Field Value
MessagesProperty
public static readonly DependencyProperty MessagesProperty
Field Value
ShowDebugProperty
public static readonly DependencyProperty ShowDebugProperty
Field Value
ShowErrorProperty
public static readonly DependencyProperty ShowErrorProperty
Field Value
ShowInfoProperty
public static readonly DependencyProperty ShowInfoProperty
Field Value
ShowSourceNameColumnProperty
public static readonly DependencyProperty ShowSourceNameColumnProperty
Field Value
ShowVerboseProperty
public static readonly DependencyProperty ShowVerboseProperty
Field Value
ShowWarningProperty
public static readonly DependencyProperty ShowWarningProperty
Field Value
TimeFormatProperty
public static readonly DependencyProperty TimeFormatProperty
Field Value
Properties
AutoResize
Automatically to align the width of the columns by content. The default is off.
public bool AutoResize { get; set; }
Property Value
AutoScroll
Automatically to scroll control on the last row added. The default is off.
public bool AutoScroll { get; set; }
Property Value
ClearCommand
The command to clear log items.
public ICommand ClearCommand { get; set; }
Property Value
Like
Text filter for the log messages.
public string Like { get; set; }
Property Value
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
Messages
The log entries collection.
public LogMessageCollection Messages { get; set; }
Property Value
ShowDebug
To show messages of type Debug. Enabled by default.
public bool ShowDebug { get; set; }
Property Value
ShowError
To show messages of type Error. Enabled by default.
public bool ShowError { get; set; }
Property Value
ShowInfo
To show messages of type Info. Enabled by default.
public bool ShowInfo { get; set; }
Property Value
ShowSourceNameColumn
To show the column with the source name. Enabled by default.
public bool ShowSourceNameColumn { get; set; }
Property Value
ShowVerbose
To show messages of type Verbose. Enabled by default.
public bool ShowVerbose { get; set; }
Property Value
ShowWarning
To show messages of type Warning. Enabled by default.
public bool ShowWarning { get; set; }
Property Value
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
Methods
GetLogAutoResize(UIElement)
To get the value for AutoResize.
public static bool GetLogAutoResize(UIElement element)
Parameters
element
UIElementObject LogControl.
Returns
- bool
The value of AutoResize.
GetLogAutoScroll(UIElement)
To get the value for AutoScroll.
public static bool GetLogAutoScroll(UIElement element)
Parameters
element
UIElementObject LogControl.
Returns
- bool
The value of AutoScroll.
GetLogMaxItemsCount(UIElement)
To get the value for MaxItemsCount.
public static int GetLogMaxItemsCount(UIElement element)
Parameters
element
UIElementObject LogControl.
Returns
- int
The value of MaxItemsCount.
GetLogShowSourceNameColumn(UIElement)
To get the value for ShowSourceNameColumn.
public static bool GetLogShowSourceNameColumn(UIElement element)
Parameters
element
UIElementObject LogControl.
Returns
- bool
The value of ShowSourceNameColumn.
InitializeComponent()
InitializeComponent
public void InitializeComponent()
Load(SettingsStorage)
Load settings.
public void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
Save(SettingsStorage)
Save settings.
public void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
SetLogAutoResize(UIElement, bool)
To set the value for AutoResize.
public static void SetLogAutoResize(UIElement element, bool value)
Parameters
element
UIElementObject LogControl.
value
boolNew value for AutoResize.
SetLogAutoScroll(UIElement, bool)
To set the value for AutoScroll.
public static void SetLogAutoScroll(UIElement element, bool value)
Parameters
element
UIElementObject LogControl.
value
boolNew value for AutoScroll.
SetLogMaxItemsCount(UIElement, int)
To set the value for MaxItemsCount.
public static void SetLogMaxItemsCount(UIElement element, int value)
Parameters
element
UIElementObject LogControl.
value
intNew value for MaxItemsCount.
SetLogShowSourceNameColumn(UIElement, bool)
To set the value for ShowSourceNameColumn.
public static void SetLogShowSourceNameColumn(UIElement element, bool value)
Parameters
element
UIElementObject LogControl.
value
boolNew value for ShowSourceNameColumn.
Events
LayoutChanged
Layout changed event.
public event Action LayoutChanged