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

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

javascript - Handling constructor related functions while testing with mocha and sinon -