private void SelectEvents(IEnumerable events) { // Set the active plugin to this one ClientState.Current.ViewController.SelectedPlugin = Plugin; // Replace the selected events State.SelectedEvents.ReplaceWithCast(events); // Scroll to the selected events EventsListView.ScrollIntoView(State.SelectedEvents); // Raise the selected event changed event OnSelectedEventChanged(); }
private void EventsListView_SelectionChanged(object sender, SelectionChangedEventArgs e) { EventsListView.ScrollIntoView(EventsListView.SelectedItem); }