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

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -