I have set up a Grid inside a ScrollViewer. At runtime, based on the results of a search I dynamically build a number of checkboxes which I add as Children to the Grid. This all works fine.
But, when I select a CheckBox, the ScrollViewer moves and places the checked box to the top of the view.
For instance, if the box I want to check is in the middle of the view, when I check it, it moves to the top of the view while its place in the overall list remains the same.

Aman GuptaRank #193 · 12.4K reputationPosted Jan 25, 2021, 12:36 PM EST
John Palmieri12 reputationPosted Jan 25, 2021, 1:56 PM EST
Rajanikant HawaldarRank #110 · 20.3K reputationPosted Jan 26, 2021, 9:28 AM EST