LogControl

StockSharp.Xaml

显示日志的图形组件 。

继承自: UserControl

实现: ILogListener, IPersistable, IDisposable, IComponentConnector

构造函数

LogControl
public LogControl()
logControl = LogControl()

初始化了 & ##LogControl+#的新实例.

属性

AutoResize
public bool AutoResize { get; set; }
value = logControl.AutoResize
logControl.AutoResize = value

自动按内容对齐列宽。默认关闭 。

AutoScroll
public bool AutoScroll { get; set; }
value = logControl.AutoScroll
logControl.AutoScroll = value

自动滚动上行的控制。默认值已关闭 。

ClearCommand
public ICommand ClearCommand { get; set; }
value = logControl.ClearCommand
logControl.ClearCommand = value

清除日志项的命令 。

Like
public string Like { get; set; }
value = logControl.Like
logControl.Like = value

日志信件的文本过滤器 。

MaxItemsCount
public int MaxItemsCount { get; set; }
value = logControl.MaxItemsCount
logControl.MaxItemsCount = value

显示条目的最大数量。 -1 值意味着无限数量的记录。默认情况下,显示的是64位进程的最后一万个记录和32位进程的最后一万个记录。

Messages
public LogMessageCollection Messages { get; set; }
value = logControl.Messages
logControl.Messages = value

日志条目集.

ShowDebug
public bool ShowDebug { get; set; }
value = logControl.ShowDebug
logControl.ShowDebug = value

要显示调试类型的信件。 默认已启用 。

ShowError
public bool ShowError { get; set; }
value = logControl.ShowError
logControl.ShowError = value

显示类型错误的信件。 默认启用 。

ShowInfo
public bool ShowInfo { get; set; }
value = logControl.ShowInfo
logControl.ShowInfo = value

显示信息类型。 默认启用 。

ShowSourceNameColumn
public bool ShowSourceNameColumn { get; set; }
value = logControl.ShowSourceNameColumn
logControl.ShowSourceNameColumn = value

要显示带有源名的列。 默认启用 。

ShowVerbose
public bool ShowVerbose { get; set; }
value = logControl.ShowVerbose
logControl.ShowVerbose = value

显示 Verbose 类型的信件。 默认已启用 。

ShowWarning
public bool ShowWarning { get; set; }
value = logControl.ShowWarning
logControl.ShowWarning = value

显示类型警告。 默认启用 。

TimeFormat
public string TimeFormat { get; set; }
value = logControl.TimeFormat
logControl.TimeFormat = value

转换时间为字符串的格式。默认格式为yy/MM/dd HH:mm: ss.fff。

方法

GetLogAutoResize
public static bool GetLogAutoResize(UIElement element)
result = LogControl.GetLogAutoResize(element)

To get the value for AutoResize.

element
Object LogControl.

返回值: The value of AutoResize.

GetLogAutoScroll
public static bool GetLogAutoScroll(UIElement element)
result = LogControl.GetLogAutoScroll(element)

To get the value for AutoScroll.

element
Object LogControl.

返回值: The value of AutoScroll.

GetLogMaxItemsCount
public static int GetLogMaxItemsCount(UIElement element)
result = LogControl.GetLogMaxItemsCount(element)

To get the value for MaxItemsCount.

element
Object LogControl.

返回值: The value of MaxItemsCount.

GetLogShowSourceNameColumn
public static bool GetLogShowSourceNameColumn(UIElement element)
result = LogControl.GetLogShowSourceNameColumn(element)

要得到ShowSourceNameColumn的值。

element
Object LogControl.

返回值: The value of ShowSourceNameColumn.

InitializeComponent
public void InitializeComponent()
logControl.InitializeComponent()

InitializeComponent

Load
public void Load(SettingsStorage storage)
logControl.Load(storage)

装入设置 。

storage
设置存储 。
Save
public void Save(SettingsStorage storage)
logControl.Save(storage)

保存设置 。

storage
设置存储 。
SetLogAutoResize
public static void SetLogAutoResize(UIElement element, bool value)
LogControl.SetLogAutoResize(element, value)

设置 &% AutoResize 的值 。

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

设置 &% AutoScroll 的值 。

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

设置 &% MaxItemsCount 的值 。

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

设置 &% ShowSourceNameColumn 的值 。

element
Object LogControl.
value
New value for ShowSourceNameColumn.

事件

LayoutChanged
public event Action LayoutChanged
logControl.LayoutChanged += handler

版式已更改 。

字段

AutoResizeProperty
public static readonly DependencyProperty AutoResizeProperty
value = LogControl.AutoResizeProperty

DependencyProperty 为AutoResize.

AutoScrollProperty
public static readonly DependencyProperty AutoScrollProperty
value = LogControl.AutoScrollProperty

DependencyProperty 为AutoScroll.

ClearCommandProperty
public static readonly DependencyProperty ClearCommandProperty
value = LogControl.ClearCommandProperty

DependencyProperty 为ClearCommand.

LogAutoResizeProperty
public static readonly DependencyProperty LogAutoResizeProperty
value = LogControl.LogAutoResizeProperty

DependencyProperty 为AutoResize.

LogAutoScrollProperty
public static readonly DependencyProperty LogAutoScrollProperty
value = LogControl.LogAutoScrollProperty

DependencyProperty 为AutoScroll.

LogMaxItemsCountProperty
public static readonly DependencyProperty LogMaxItemsCountProperty
value = LogControl.LogMaxItemsCountProperty

DependencyProperty 为MaxItemsCount.

LogShowSourceNameColumnProperty
public static readonly DependencyProperty LogShowSourceNameColumnProperty
value = LogControl.LogShowSourceNameColumnProperty

DependencyProperty 为ShowSourceNameColumn.

MaxItemsCountProperty
public static readonly DependencyProperty MaxItemsCountProperty
value = LogControl.MaxItemsCountProperty

DependencyProperty 为MaxItemsCount.

MessagesProperty
public static readonly DependencyProperty MessagesProperty
value = LogControl.MessagesProperty

DependencyProperty for Messages.

ShowDebugProperty
public static readonly DependencyProperty ShowDebugProperty
value = LogControl.ShowDebugProperty

DependencyProperty 为ShowDebug.

ShowErrorProperty
public static readonly DependencyProperty ShowErrorProperty
value = LogControl.ShowErrorProperty

DependencyProperty 为ShowError.

ShowInfoProperty
public static readonly DependencyProperty ShowInfoProperty
value = LogControl.ShowInfoProperty

DependencyProperty 为ShowInfo.

ShowSourceNameColumnProperty
public static readonly DependencyProperty ShowSourceNameColumnProperty
value = LogControl.ShowSourceNameColumnProperty

DependencyProperty 为ShowSourceNameColumn.

ShowVerboseProperty
public static readonly DependencyProperty ShowVerboseProperty
value = LogControl.ShowVerboseProperty

DependencyProperty 为ShowVerbose.

ShowWarningProperty
public static readonly DependencyProperty ShowWarningProperty
value = LogControl.ShowWarningProperty

DependencyProperty 为ShowWarning.

TimeFormatProperty
public static readonly DependencyProperty TimeFormatProperty
value = LogControl.TimeFormatProperty

DependencyProperty 为TimeFormat.