multithreading - Is it guaranteed that handler for wpf view event is called in UI-thread -
if write handler of wpf event can sure executed in ui-thread , don't use additional checks? specification describe case? . belevie handler called in ui-thread haven't proofs
is guaranteed handler wpf view event called in ui-thread
yes, unless create background thread somewhere , raise event 1 somehow. , clarify, ui thread here means thread on control raised event created. can create controls on different ui threads default one. none of built-in ui controls raises events on background thread default.
so if don't create controls on background threads, ui events raised on main dispatcher thread.
Comments
Post a Comment