LogControl

StockSharp.Xaml

O componente gráfico para a exibição de logs.

Herda de: UserControl

Implementa: ILogListener, IAsyncPersistable, IDisposable, IComponentConnector

Construtores

LogControl
public LogControl()
logControl = LogControl()

Inicializa uma nova instância do LogControl.

Propriedades

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

Automaticamente para alinhar a largura das colunas pelo conteúdo. O padrão está desligado.

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

Automaticamente para rolar o controle na última linha adicionada. O padrão está desligado.

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

O comando para limpar os itens de registo.

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

Filtro de texto para as mensagens de registo.

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

O número máximo de entradas a mostrar. O valor - 1 significa uma quantidade ilimitada de registros. Por padrão, os últimos 10000 registros para o processo de 64 bits e 1000 registros para o processo de 32 bits são exibidos.

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

A colecção de entradas de registo.

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

Para mostrar mensagens do tipo Depuração. Activado por omissão.

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

Para mostrar as mensagens do tipo Erro. Activado por omissão.

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

Para mostrar mensagens do tipo Informação. Activado por omissão.

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

Para mostrar a coluna com o nome de origem. Activada por omissão.

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

Para mostrar mensagens do tipo Verbose. Activado por omissão.

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

Para mostrar mensagens do tipo Aviso. Activado por omissão.

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

Formato para o tempo de conversão em uma string. O formato padrão é yy/MM/dd HH:mm:ss.fff.

Métodos

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

Para obter o valor de AutoResize.

element
Objeto LogControl.

Retorna: O valor de AutoResize.

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

Para obter o valor de AutoScroll.

element
Objeto LogControl.

Retorna: O valor de AutoScroll.

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

Para obter o valor de MaxItemsCount.

element
Objeto LogControl.

Retorna: O valor de MaxItemsCount.

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

Para obter o valor de ShowSourceNameColumn.

element
Objeto LogControl.

Retorna: O valor de ShowSourceNameColumn.

InitializeComponent
public void InitializeComponent()
logControl.InitializeComponent()

InitializeComponent

LoadAsync
public Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = logControl.LoadAsync(storage, cancellationToken)

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Retorna: Task

SaveAsync
public Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = logControl.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Retorna: Task

SetLogAutoResize
public static void SetLogAutoResize(UIElement element, bool value)
LogControl.SetLogAutoResize(element, value)

Para definir o valor para AutoResize.

element
Objeto LogControl.
value
Novo valor para AutoResize.
SetLogAutoScroll
public static void SetLogAutoScroll(UIElement element, bool value)
LogControl.SetLogAutoScroll(element, value)

Para definir o valor para AutoScroll.

element
Objeto LogControl.
value
Novo valor para AutoScroll.
SetLogMaxItemsCount
public static void SetLogMaxItemsCount(UIElement element, int value)
LogControl.SetLogMaxItemsCount(element, value)

Para definir o valor para MaxItemsCount.

element
Objeto LogControl.
value
Novo valor para MaxItemsCount.
SetLogShowSourceNameColumn
public static void SetLogShowSourceNameColumn(UIElement element, bool value)
LogControl.SetLogShowSourceNameColumn(element, value)

Para definir o valor para ShowSourceNameColumn.

element
Objeto LogControl.
value
Novo valor para ShowSourceNameColumn.

Eventos

LayoutChanged
public event Action LayoutChanged
logControl.LayoutChanged += handler

O layout mudou o evento.

Campos

AutoResizeProperty
public static readonly DependencyProperty AutoResizeProperty
value = LogControl.AutoResizeProperty

DependencyProperty@ para AutoResize.

AutoScrollProperty
public static readonly DependencyProperty AutoScrollProperty
value = LogControl.AutoScrollProperty

DependencyProperty@ para AutoScroll.

ClearCommandProperty
public static readonly DependencyProperty ClearCommandProperty
value = LogControl.ClearCommandProperty

DependencyProperty@ para ClearCommand.

LogAutoResizeProperty
public static readonly DependencyProperty LogAutoResizeProperty
value = LogControl.LogAutoResizeProperty

DependencyProperty@ para AutoResize.

LogAutoScrollProperty
public static readonly DependencyProperty LogAutoScrollProperty
value = LogControl.LogAutoScrollProperty

DependencyProperty@ para AutoScroll.

LogMaxItemsCountProperty
public static readonly DependencyProperty LogMaxItemsCountProperty
value = LogControl.LogMaxItemsCountProperty

DependencyProperty@ para MaxItemsCount.

LogShowSourceNameColumnProperty
public static readonly DependencyProperty LogShowSourceNameColumnProperty
value = LogControl.LogShowSourceNameColumnProperty

DependencyProperty@ para ShowSourceNameColumn.

MaxItemsCountProperty
public static readonly DependencyProperty MaxItemsCountProperty
value = LogControl.MaxItemsCountProperty

DependencyProperty@ para MaxItemsCount.

MessagesProperty
public static readonly DependencyProperty MessagesProperty
value = LogControl.MessagesProperty

DependencyProperty para Mensagens.

ShowDebugProperty
public static readonly DependencyProperty ShowDebugProperty
value = LogControl.ShowDebugProperty

DependencyProperty@ para ShowDebug.

ShowErrorProperty
public static readonly DependencyProperty ShowErrorProperty
value = LogControl.ShowErrorProperty

DependencyProperty@ para ShowError.

ShowInfoProperty
public static readonly DependencyProperty ShowInfoProperty
value = LogControl.ShowInfoProperty

DependencyProperty@ para ShowInfo.

ShowSourceNameColumnProperty
public static readonly DependencyProperty ShowSourceNameColumnProperty
value = LogControl.ShowSourceNameColumnProperty

DependencyProperty@ para ShowSourceNameColumn.

ShowVerboseProperty
public static readonly DependencyProperty ShowVerboseProperty
value = LogControl.ShowVerboseProperty

DependencyProperty@ para ShowVerbose.

ShowWarningProperty
public static readonly DependencyProperty ShowWarningProperty
value = LogControl.ShowWarningProperty

DependencyProperty@ para ShowWarning.

TimeFormatProperty
public static readonly DependencyProperty TimeFormatProperty
value = LogControl.TimeFormatProperty

DependencyProperty@ para TimeFormat.