Working with warnings

This commit is contained in:
Matthias Heil
2026-04-04 15:36:30 +02:00
parent 3b9d8f4c16
commit 015d7d4542
21 changed files with 211 additions and 159 deletions
@@ -8,7 +8,10 @@ namespace LogViewer.Avalonia;
public partial class LogViewerControl : UserControl
{
public LogViewerControl()
=> InitializeComponent();
{
InitializeComponent();
}
private ILogDataStoreImpl? vm;
private LogModel? item;
@@ -23,7 +26,7 @@ public partial class LogViewerControl : UserControl
}
private void OnCollectionChanged(object? sender, NotifyCollectionChangedEventArgs e)
=> item = MyDataGrid.Items.Cast<LogModel>().LastOrDefault();
=> item = MyDataGrid.ItemsSource.Cast<LogModel>().LastOrDefault();
private void OnLayoutUpdated(object? sender, EventArgs e)
{