Working with warnings
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user