0

The page on UICollectionClass (from the Microsoft WPF libraries) has the following note:

A UIElementCollection has affinity to its own context (class). You must access the collection from the context of the owning Panel.

What is an example of an incorrect way of using this class where I would run into the problem cited above?

enter image description here

Sabuncu
  • 5,095
  • 5
  • 55
  • 89
  • @Clemens So the affinity being referenced is about threading. But could my question be reopened, as I am asking for an example of incorrect usage? – Sabuncu Aug 12 '19 at 13:51
  • Incorrect usage would obviously be trying to access a DispatcherObject from a thread other than the one in which it was created. – Clemens Aug 12 '19 at 13:53
  • @Clemens Did you want to provide your comment as an answer? Thanks. – Sabuncu Aug 12 '19 at 14:17

0 Answers0