LogControl
El componente gráfico para la visualización de registros.
Hereda de: UserControl
Implementa: ILogListener, IPersistable, IDisposable, IComponentConnector
Constructores
public LogControl()
logControl = LogControl()
Inicia una nueva instancia de la LogControl.
Propiedades
public bool AutoResize { get; set; }
value = logControl.AutoResize
logControl.AutoResize = value
Automáticamente para alinear el ancho de las columnas por contenido. El predeterminado está apagado.
public bool AutoScroll { get; set; }
value = logControl.AutoScroll
logControl.AutoScroll = value
Automáticamente para el control de desplazamiento en la última fila añadido. El predeterminado está apagado.
public ICommand ClearCommand { get; set; }
value = logControl.ClearCommand
logControl.ClearCommand = value
El comando para borrar los elementos de registro.
public string Like { get; set; }
value = logControl.Like
logControl.Like = value
Filtro de texto para los mensajes de registro.
public int MaxItemsCount { get; set; }
value = logControl.MaxItemsCount
logControl.MaxItemsCount = value
El número máximo de entradas para mostrar. El valor -1 significa una cantidad ilimitada de registros. Por defecto, se muestran los últimos 10000 registros para el proceso de 64 bits y 1000 registros para el proceso de 32 bits.
public LogMessageCollection Messages { get; set; }
value = logControl.Messages
logControl.Messages = value
La colección de entradas de registro.
public bool ShowDebug { get; set; }
value = logControl.ShowDebug
logControl.ShowDebug = value
Para mostrar mensajes de tipo Debug. Permitido por defecto.
public bool ShowError { get; set; }
value = logControl.ShowError
logControl.ShowError = value
Para mostrar mensajes de tipo Error. Permitido por defecto.
public bool ShowInfo { get; set; }
value = logControl.ShowInfo
logControl.ShowInfo = value
Para mostrar mensajes de tipo Info. Permitido por defecto.
public bool ShowSourceNameColumn { get; set; }
value = logControl.ShowSourceNameColumn
logControl.ShowSourceNameColumn = value
Para mostrar la columna con el nombre de la fuente. Permitido por defecto.
public bool ShowVerbose { get; set; }
value = logControl.ShowVerbose
logControl.ShowVerbose = value
Para mostrar mensajes de tipo Verbose. Permitido por defecto.
public bool ShowWarning { get; set; }
value = logControl.ShowWarning
logControl.ShowWarning = value
Para mostrar mensajes de tipo Advertencia. Activado por defecto.
public string TimeFormat { get; set; }
value = logControl.TimeFormat
logControl.TimeFormat = value
Formato para el tiempo de conversión en una cadena. El formato predeterminado es yy/MM/dd HH:mm:ss.fff@.
Métodos
public static bool GetLogAutoResize(UIElement element)
result = LogControl.GetLogAutoResize(element)
Para obtener el valor de AutoResize.
- element
- Objeto LogControl.
Devuelve: El valor de AutoResize.
public static bool GetLogAutoScroll(UIElement element)
result = LogControl.GetLogAutoScroll(element)
Para obtener el valor de AutoScroll.
- element
- Objeto LogControl.
Devuelve: El valor de AutoScroll.
public static int GetLogMaxItemsCount(UIElement element)
result = LogControl.GetLogMaxItemsCount(element)
Para obtener el valor de MaxItemsCount.
- element
- Objeto LogControl.
Devuelve: El valor de MaxItemsCount.
public static bool GetLogShowSourceNameColumn(UIElement element)
result = LogControl.GetLogShowSourceNameColumn(element)
Para obtener el valor de ShowSourceNameColumn.
- element
- Objeto LogControl.
Devuelve: El valor de ShowSourceNameColumn.
public void InitializeComponent()
logControl.InitializeComponent()
InitializeComponent
public void Load(SettingsStorage storage)
logControl.Load(storage)
Ajustes de carga.
- storage
- Configuración de almacenamiento.
public void Save(SettingsStorage storage)
logControl.Save(storage)
Guardar configuración.
- storage
- Configuración de almacenamiento.
public static void SetLogAutoResize(UIElement element, bool value)
LogControl.SetLogAutoResize(element, value)
Para establecer el valor de AutoResize.
- element
- Objeto LogControl.
- value
- Nuevo valor para AutoResize.
public static void SetLogAutoScroll(UIElement element, bool value)
LogControl.SetLogAutoScroll(element, value)
Para establecer el valor de AutoScroll.
- element
- Objeto LogControl.
- value
- Nuevo valor para AutoScroll.
public static void SetLogMaxItemsCount(UIElement element, int value)
LogControl.SetLogMaxItemsCount(element, value)
Para establecer el valor de MaxItemsCount.
- element
- Objeto LogControl.
- value
- Nuevo valor para MaxItemsCount.
public static void SetLogShowSourceNameColumn(UIElement element, bool value)
LogControl.SetLogShowSourceNameColumn(element, value)
Para establecer el valor de ShowSourceNameColumn.
- element
- Objeto LogControl.
- value
- Nuevo valor para ShowSourceNameColumn.
Eventos
public event Action LayoutChanged
logControl.LayoutChanged += handler
Disposición cambió el evento.
Campos
public static readonly DependencyProperty AutoResizeProperty
value = LogControl.AutoResizeProperty
DependencyProperty for AutoResize.
public static readonly DependencyProperty AutoScrollProperty
value = LogControl.AutoScrollProperty
DependencyProperty for AutoScroll.
public static readonly DependencyProperty ClearCommandProperty
value = LogControl.ClearCommandProperty
DependencyProperty for ClearCommand.
public static readonly DependencyProperty LogAutoResizeProperty
value = LogControl.LogAutoResizeProperty
DependencyProperty for AutoResize.
public static readonly DependencyProperty LogAutoScrollProperty
value = LogControl.LogAutoScrollProperty
DependencyProperty for AutoScroll.
public static readonly DependencyProperty LogMaxItemsCountProperty
value = LogControl.LogMaxItemsCountProperty
DependencyProperty for MaxItemsCount.
public static readonly DependencyProperty LogShowSourceNameColumnProperty
value = LogControl.LogShowSourceNameColumnProperty
DependencyProperty para ShowSourceNameColumn.
public static readonly DependencyProperty MaxItemsCountProperty
value = LogControl.MaxItemsCountProperty
DependencyProperty for MaxItemsCount.
public static readonly DependencyProperty MessagesProperty
value = LogControl.MessagesProperty
DependencyProperty para Mensajes.
public static readonly DependencyProperty ShowDebugProperty
value = LogControl.ShowDebugProperty
DependencyProperty for ShowDebug.
public static readonly DependencyProperty ShowErrorProperty
value = LogControl.ShowErrorProperty
DependencyProperty for ShowError.
public static readonly DependencyProperty ShowInfoProperty
value = LogControl.ShowInfoProperty
DependencyProperty for ShowInfo.
public static readonly DependencyProperty ShowSourceNameColumnProperty
value = LogControl.ShowSourceNameColumnProperty
DependencyProperty para ShowSourceNameColumn.
public static readonly DependencyProperty ShowVerboseProperty
value = LogControl.ShowVerboseProperty
DependencyProperty for ShowVerbose.
public static readonly DependencyProperty ShowWarningProperty
value = LogControl.ShowWarningProperty
DependencyProperty for ShowWarning.
public static readonly DependencyProperty TimeFormatProperty
value = LogControl.TimeFormatProperty
DependencyProperty for TimeFormat.