inotifycollectionchanged Questions
3
Solved
How can I raise a CollectionChanged event on an ObservableCollection, and pass it the changed items?
I have a class that inherits from ObservableCollection and adds a few additional methods such as AddRange and RemoveRange
My base method call is this:
public void AddRange(IEnumerable<T> co...
Suppurate asked 16/9, 2011 at 18:57
13
Solved
I want to be able to add a range and get updated for the entire bulk.
I also want to be able to cancel the action before it's done (i.e. collection changing besides the 'changed').
Related Q
Wh...
Carmencarmena asked 22/3, 2009 at 5:8
3
Solved
Hi i am having some troube with DataTables. So What i need is to detect whenever i change any cell in the DataGrid of the DataTable that is binded.
How to do it? With INotifyPropertyChanged or wit...
Khorma asked 27/4, 2011 at 3:14
3
Solved
I am trying to create an ObservableConcurrentDictionary. This object will be used in a multithreaded application, and it's data is used to populate a control via the controls ItemsSource property.
...
Volution asked 14/10, 2010 at 9:15
4
Solved
I'm looking for an INotifyCollectionChanged implementation of Stack and Queue. I could roll my own but I don't want to reinvent the wheel.
Larkin asked 27/6, 2010 at 10:56
4
Solved
Here's a basic example to explain my problem. Let's say I have
ObservableCollection<int> Numbers {get; set;}
and an IValueConverter that returns the sum of Numbers.
Normally what I'd do...
Endbrain asked 4/11, 2009 at 17:34
6
Solved
In my WPF app, I have an ItemsControl whose items values are dependant upon the previous item displayed.
The ViewModel is an audio file split into parts of variable length, and i need to display ...
Claudeclaudel asked 9/8, 2011 at 12:49
3
Solved
I have 2 list views...and add/remove buttons between them.
On collection changed event of a list-view-collection in viewmodel, can i rollback the changes for a particular condition ?
Glassworks asked 25/12, 2010 at 16:47
2
Solved
I observe an odd behaviour of WPF ItemsControls: If a set the ItemsSource to an object which implements INotifyCollectionChanged and after that set the ItemsSource to null, the CollectionView which...
Houphouetboigny asked 10/2, 2015 at 19:10
4
I am looking into the topic why a ObservableCollection/ListCollectionView/CollectionView raises a NotSuportedException when calling the CollectionChanged with the parameter of IList.
//Throws an e...
Pice asked 4/2, 2014 at 16:4
1
I am trying to bind observable collection to DataGrid, i want to notify when any row is edited in datagrid.
My code works fine for notifing when record is added or removed but its not notifing whe...
Valerie asked 18/2, 2013 at 15:44
1
Solved
When creating ViewModels in WPF it's sometimes necessary to transform data that is available in an ObservableCollection (the source collection) into a collection of wrapper elements that extend/res...
Demirelief asked 17/12, 2012 at 19:21
2
Solved
I am attempting to get some custom objects from the CollectionChanged event of a collection which implements INotifyCollectionChanged.
MyControl_MyCollectionChanged(object sender, NotifyCollection...
Seclusive asked 8/10, 2012 at 11:23
3
I have an observable collection...SelectableDataContext<T>..And in the generic class SelectableDataContext<T> is...having two private member variables
Private T item.
Private bool i...
Travertine asked 21/12, 2010 at 2:54
3
Solved
The .NET Framework contains since version 3.0 the ObservableCollection<T>, but why isn´t there a ObservableKeyedCollection<TKey, TValue>.
Okay i could implement my own collection by de...
Illustrate asked 3/3, 2010 at 8:41
1
Solved
In the documentation of the event args of NotifyCollectionChangedEventArgs, there is an action called Replace (in addition to Add, Remove, Move, etc.). When can this be fired? I can't see any Repla...
Flagstone asked 1/7, 2011 at 2:59
3
Solved
I have a ListView that is databound to an ObservableCollection ...
<ListView x:Name="List1" ItemsSource="{Binding MyList}" />
I can't seem to find any event that are triggered when the col...
Reynolds asked 27/4, 2011 at 14:57
3
Solved
I was trying to implement a specialized collection that works like ObservableCollection to encapsulate some more mechanisms in it, to do that i also let my collection inherit from Collection and i ...
Inglenook asked 16/2, 2011 at 22:7
2
Solved
Has anyone written a version of .Net's generic Queue that implements INotifyCollectionChanged, or is there one hidden deep in the .Net framework somewhere already?
Vintner asked 11/11, 2008 at 15:0
1
© 2022 - 2024 — McMap. All rights reserved.