wpf - Win 8 App: Access Object from Resource in app.xaml from -


how can access object thats defined in resource in app.xaml viewmodel class?

you can access resource this:

var resource = app.current.resources["resourcekey"]; 

but suggest not viewmodel class because that's not mvvm suggests. should not access ui component viewmodel.


Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -