Hi All,
I want to scroll the listbox which is placed inside the srollviewer according to its selection.
ListBoxItem item = (ListBoxItem)(lbTrack.ItemContainerGenerator.ContainerFromItem(lbTrack.Items.CurrentItem));
// ListBoxItem item = (ListBoxItem)(lbTrack.ItemContainerGenerator.ContainerFromItem(lbTrack.SelectedItem));
if (item != null)
{
item.BringIntoView();
}
But it giving null value.