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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -