Mit BindingOperations.EnableCollectionSynchronization

Habe ich zwei WPF-Anwendungen "UI", "Debugger" und eine ClassLibrary "BL". UI Verweise auf Debugger und BL. Debugger verweist auf BL.
Ich habe die Sammlung in BL genannt MyCollection. UI-app startet den Debugger app und Debugger bindet an eine collection MyCollection in BL. Wenn ich versuche die MyCollection Sammlung von UI-app bin ich immer die Ausnahme.

A first chance exception of type 'System.NotSupportedException' occurred in PresentationFramework.dll

Additional information: This type of CollectionView does not support changes to its SourceCollection from a thread different from the Dispatcher thread.

War ich googeln um und fand dieses: BindingOperations.EnableCollectionSynchronization
Ich kann nicht herausfinden, wie es zu benutzen. Ich will nicht an Bezugnahme auf andere UI-dlls von meinem BL-Projekt. Kann jemand mir helfen?

Danke für die Hilfe!

InformationsquelleAutor Dilshod | 2014-02-12

Schreibe einen Kommentar