Skip to content

Commit ad390c5

Browse files
committed
Made the ScrollViewer automatically scroll to the last move
1 parent 77d16fe commit ad390c5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Codebreaker.WinUI/Views/Pages/GamePage.xaml.cs

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

0 commit comments

Comments
 (0)