Browse Source

Merge pull request #1863 from AvaloniaUI/fixes/1829-itemscontrol-nre

Fix NRE when VirtualizingStackPanel used with ItemsControl.
pull/1867/head
Jeremy Koritzinsky 8 years ago
committed by GitHub
parent
commit
ef3b896ba0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Controls/Presenters/ItemVirtualizer.cs

2
src/Avalonia.Controls/Presenters/ItemVirtualizer.cs

@ -279,6 +279,6 @@ namespace Avalonia.Controls.Presenters
/// <summary>
/// Invalidates the current scroll.
/// </summary>
protected void InvalidateScroll() => ((ILogicalScrollable)Owner).InvalidateScroll();
protected void InvalidateScroll() => ((ILogicalScrollable)Owner).InvalidateScroll?.Invoke();
}
}

Loading…
Cancel
Save