Class LogListBox
ListBox descendant with log and debug related functionality.
[ControlCategory("Other")]
public class LogListBox : VirtualListBox, IBaseObject, IDisposableObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, INotifyDataErrorInfo, IReadOnlyStrings
- Inheritance
-
LogListBox
- Implements
Constructors
- LogListBox()
Initializes a new instance of the LogListBox class.
Fields
- ErrorImage
Gets or sets image used for error messages.
- InformationImage
Gets or sets image used for information messages.
- WarningImage
Gets or sets image used for warning messages.
Properties
- BoundToApplicationLog
Gets or sets whether to bind this control to the application log.
- ContextMenu
Gets context menu for the control.
- LastLogMessage
Gets the last logged message.
- MenuItemShowDevTools
Gets 'Developer Tools' menu item.
- ShowDebugWelcomeMessage
Gets or sets whether debug welcome message is logged at the application start. Default value is
false
.
Methods
- BindApplicationLog()
Binds this control to show messages which are logged with Log(object?, LogItemKind).
- ConstructLogMessage(string?)
Adds additional information to the log messages.
- CreateItem()
Creates new empty item.
- DisposeManaged()
Override to dispose managed resources. Here we dispose all used object references.
- InitContextMenu()
Initializes context menu with debug related actions.
- Log(object?, LogItemKind)
Same as Log(object?, LogItemKind) but uses only this control for the logging.
- LogIf(object?, bool, LogItemKind)
Calls Log(object?, LogItemKind) if
condition
istrue
.
- LogReplace(string?, string?, LogItemKind)
Same as LogReplace(object?, object?, LogItemKind) but uses only this control for the logging.
- OnKeyDown(KeyEventArgs)
Called when the KeyDown event is raised.
- UnbindApplicationLog()
Unbinds this control from the application log.