public void ScrollingToActiveAudio() { if (AudioCollection.Count > 0) { AudioListView.ScrollIntoView(AudioCollection[SelectedIndex]); } }
private void ToolsAndsettings_ListClickHandlerCommonEvent(System.Collections.ObjectModel.ObservableCollection <AudioModel> model, int selectedIndex) { LoadingList = true; if (selectedIndex != -1) { SelectedIndex = selectedIndex; AudioModel[] AudiomodelArry = new AudioModel[model.Count]; model.CopyTo(AudiomodelArry, 0); AudioCollection.Clear(); foreach (var Audio in AudiomodelArry) { AudioCollection.Add(Audio); } AudioListView.SelectedIndex = selectedIndex; AudioListView.ScrollIntoView(AudioCollection[SelectedIndex]); } LoadingList = false; }