private void ItemManipulationModel_FocusSelectedItemsInvoked(object sender, EventArgs e) { if (SelectedItems.Any()) { FileList.ScrollIntoView(SelectedItems.Last()); } }
public override void FocusSelectedItems() { if (SelectedItems.Any()) { FileList.ScrollIntoView(SelectedItems.Last()); } }
public override void FocusSelectedItems() { if (SelectedItems.Any()) { AllView.ScrollIntoView(SelectedItems.Last(), null); } }
public void FindPrevious(string text, bool matchCase) { if (string.IsNullOrEmpty(text) || ItemsSource == null) { return; } var skipIndex = 0; if (SelectedItems.Count > 0) { skipIndex = ItemsSource.Count() - ItemsSource.IndexOf(SelectedItems.Last()) - 1; } HighlightItems(text, matchCase); foreach (var item in ItemsSource.Reverse().Skip(skipIndex + 1)) { if (ItemMatchesSearch(text, item, matchCase)) { _listView.SelectedItem = item; ScrollIntoSelectedItem(); return; } } }
private void ItemManipulationModel_FocusSelectedItemsInvoked(object sender, EventArgs e) { if (SelectedItems.Any()) { FileList.ScrollIntoView(SelectedItems.Last()); (FileList.ContainerFromItem(SelectedItems.Last()) as GridViewItem)?.Focus(FocusState.Keyboard); } }