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
Post a Comment