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

c - ALSA programming: how to stop immediately -

c++ - How call method from Qt GUI in background worker thread using QThread -