Table of Contents

Class LogListBox

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

ListBox descendant with log and debug related functionality.

[ControlCategory("Other")]
public class LogListBox : VirtualTreeControl, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IDisposableObject, IBaseObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, INotifyDataErrorInfo, ITreeControlItemContainer
Inheritance
LogListBox
Implements

Constructors

LogListBox()

Initializes a new instance of the LogListBox class.

LogListBox(Control)

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.

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(int, 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.

GetDefaultImage(LogItemKind)

Gets default SvgImage for the specified LogItemKind.

GetImage(LogItemKind)

Gets SvgImage for the specified LogItemKind.

InitContextMenu()

Initializes context menu with default 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 is true.

LogReplace(string?, string?, LogItemKind)

Same as LogReplace(object?, object?, LogItemKind) but uses only this control for the logging.

UnbindApplicationLog()

Unbinds this control from the application log.