Skip to content

Commit

Permalink
Fix grouped ListView ScrollTo crash on Windows (#7413)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuarezruiz committed May 23, 2022
1 parent 1ed1db6 commit 0c238bc
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -619,8 +619,8 @@ async void ScrollTo(object group, object item, ScrollToPosition toPosition, bool

var semanticLocation = new SemanticZoomLocation { Item = c };

// async scrolling
await Control.Dispatcher.RunAsync(global::Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
// NOTE: For now, WinUI Dispatcher and CoreDisptacher are null. We use DispatcherQueue instead.
Control.DispatcherQueue.TryEnqueue(UI.Dispatching.DispatcherQueuePriority.Normal, () =>
{
switch (toPosition)
{
Expand Down

0 comments on commit 0c238bc

Please sign in to comment.