LogControl
The graphical component for logs displaying.
继承自: UserControl
实现: ILogListener, IPersistable, IDisposable, IComponentConnector
构造函数
LogControl()
Initializes a new instance of the LogControl.
属性
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.
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.
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.
方法
GetLogAutoResize(UIElement) : bool
To get the value for AutoResize.
- element
- Object LogControl.
返回值: The value of AutoResize.
GetLogAutoScroll(UIElement) : bool
To get the value for AutoScroll.
- element
- Object LogControl.
返回值: The value of AutoScroll.
GetLogMaxItemsCount(UIElement) : int
To get the value for MaxItemsCount.
- element
- Object LogControl.
返回值: The value of MaxItemsCount.
GetLogShowSourceNameColumn(UIElement) : bool
To get the value for ShowSourceNameColumn.
- element
- Object LogControl.
返回值: The value of ShowSourceNameColumn.
InitializeComponent()
InitializeComponent
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.
事件
LayoutChanged : Action
Layout changed event.
字段
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.