Skip to content

Commit 21a87e0

Browse files
committed
Made ScrollViewer automatically scroll to last move
1 parent f52352f commit 21a87e0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Codebreaker.Uno/CodebreakerUno/Views/Pages/GamePage.xaml.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,9 @@ public void Receive(GameMoveMessage message)
4040
animation.Configuration = new BasicConnectedAnimationConfiguration();
4141
animation.TryStart(ellipse);
4242
});
43+
44+
// Scroll to bottom
45+
pegScrollViewer.UpdateLayout();
46+
pegScrollViewer.ScrollToVerticalOffset(pegScrollViewer.ScrollableHeight);
4347
}
4448
}

0 commit comments

Comments
 (0)