c# - MvvmCross resource loader plugin -


i try load xml resource mvxresourceloader plugin available on nuget.

steps made:

  1. downloaded plugin pcl , windows phone project.
  2. injected plugin viewmodel. (_loader)
  3. added line:

    _loader.getresourcestream("assets/suggestions.xml", delegate(stream stream) {...});

  4. added resource windows phone project under correct path , set resource.

result:

the stream null. tried different versions of path.

it's hard tell exact situation is, there couple of working demos use resource plugin - , compare projects against these (although these may still stuck in winph7 winph8 handover may need love...):

also there's documentation available on: https://github.com/mvvmcross/mvvmcross/wiki/mvvmcross-plugins#wiki-resourceloader

for windowsphone, getresourcestream implemented in https://github.com/mvvmcross/mvvmcross/blob/v3.1/plugins/cirrious/resourceloader/cirrious.mvvmcross.plugins.resourceloader.windowsphone/mvxwindowsphoneresourceloader.cs#l19 - loads content as:

var streaminfo = system.windows.application.getresourcestream(new uri(resourcepath, urikind.relative)); 

so, resources load when using system.windows call? if do, plugin should work too.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -