Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.55 KB

iobservablemap_2_mapchanged.md

File metadata and controls

25 lines (17 loc) · 1.55 KB
-api-id -api-type
E:Windows.Foundation.Collections.IObservableMap`2.MapChanged
winrt event

Windows.Foundation.Collections.IObservableMap<K, V>.MapChanged

-description

Occurs when the map changes.

-remarks

The event handler receives an IMapChangedEventArgs object that contains data that describes the event.

.NET usage

IObservableMap<K,V> isn't hidden for .NET usage. However, it's more common to use the .NET ObservableCollection<T> type (using a KeyValuePair as T) as a base class, or implement a Dictionary type or interface (generic or nongeneric) and INotifyCollectionChanged separately. If you do use IObservableMap<K,V> for .NET code, the base interfaces (and their members) project as System.Collections.Generic.IDictionary<TKey,TValue> and IEnumerable<T> (with KeyValuePair). MapChanged is the only API that's shared between the projections.

-examples

-see-also

IObservableMap<K, V>, MapChangedEventHandler(K, V), IMapChangedEventArgs<K>