コード例 #1
0
        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();
        }
コード例 #2
0
 private void EventsListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     EventsListView.ScrollIntoView(EventsListView.SelectedItem);
 }