c# - Use reflection to get app.dispatcher from class library -


is there way app dispatcher class library using reflection? nothing i've tried has worked.

you can dispatcher calling system.windows.application.current.dispatcher

you need add references presentationframework, windowsbase, system.xaml access application class ordinary class library.


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -