This question is locked. New answers and comments are not allowed.
Hello.
I'm using BringIntoView method to set some view on the top of the DataBoundListBox. In my app's work scenario I need to call this method two times:
After second call between most part of items appears additional space. If the app navigates to another page and after that navigates back to the page with the listbox then this incorrect spaces disappear.
A similar problem with standard ListBox discussed here: http://social.msdn.microsoft.com/Forums/en-US/wpdevelop/thread/53c19659-116f-4dcb-8263-5744795f4f1c/
But the described decision strongly impacts on the performance. And I can't apply it to the DataBoundListBox.
What can I do to solve this "additional space" problem?
I'm using BringIntoView method to set some view on the top of the DataBoundListBox. In my app's work scenario I need to call this method two times:
var viewToScroll = ItemsSource.Last();
listBox.BringIntoView(viewToScroll);
var currentView = GetCurrentView();
if
(currentView !=
null
)
{
viewToScroll = currentView;
}
listBox.BringIntoView(viewToScroll);
After second call between most part of items appears additional space. If the app navigates to another page and after that navigates back to the page with the listbox then this incorrect spaces disappear.
A similar problem with standard ListBox discussed here: http://social.msdn.microsoft.com/Forums/en-US/wpdevelop/thread/53c19659-116f-4dcb-8263-5744795f4f1c/
But the described decision strongly impacts on the performance. And I can't apply it to the DataBoundListBox.
What can I do to solve this "additional space" problem?