Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

HybridWebView in Windows App

$
0
0

I am trying to use the XLabs HybridWebView and in my Windows App Im trying to set the IOC,

`private void SetIoc()
{
var resolverContainer = new SimpleContainer();

        resolverContainer.Register<IDevice>(t => WindowsPhoneDevice.CurrentDevice)
            .Register<IJsonSerializer, JsonSerializer>();

        Resolver.SetResolver(resolverContainer.GetResolver());
    }`

The problem is, I need to change WindowsPhoneDevice.CurrentDevice to WindowsApp.??????? but I cannot figure out what to change it to?

Also, there is no reference for JsonSerializer and I have no idea which library I need for this?

Thanks


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>