Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // responses is an ObservableCollection where I add the content from http responses
- responses.Add(content);
- // dataGrid.ItemsSource is binded to responses
- dataGrid.ScrollIntoView(content);
- ((INotifyCollectionChanged)DataGrid.Items).CollectionChanged += CollectionChangedEventHandler;
- private void CollectionChangedEventHandler(object sender, NotifyCollectionChangedEventArgs e)
- {
- var itemCollection = sender as ItemCollection;
- // How to access ModelParent here?
- }
- var dataGrid = itemCollection.GetType().GetProperty("ModelParent").GetValue(itemCollection);
Add Comment
Please, Sign In to add comment