Hello,
I'm attempting to scroll the selected item into view. The item is not null. I have tried the following methods:
All of the above methods simply scroll my grid a few pixels only and then stop. All four behave the same way. If I call all four together, it scrolls (a couple pixels * 4). Any ideas?
I'm attempting to scroll the selected item into view. The item is not null. I have tried the following methods:
mainGrid.ScrollIntoView(mainGrid.SelectedItem);
mainGrid.BringIndexIntoView(mainGrid.Items.IndexOf(mainGrid.SelectedItem));
Dispatcher.BeginInvoke(new Action(() => mainGrid.ScrollIntoView(mainGrid.SelectedItem)));
Dispatcher.BeginInvoke(new Action(() => mainGrid.BringIndexIntoView(mainGrid.Items.IndexOf(mainGrid.SelectedItem))));
All of the above methods simply scroll my grid a few pixels only and then stop. All four behave the same way. If I call all four together, it scrolls (a couple pixels * 4). Any ideas?