0

Is that possible to pass the webview object from PCL (shared folder) to other platform like UWP, Android, iOS?

Code in PCL MainPage.xaml.cs

public MainPage()
{
    InitializeComponent();
    var browser = new WebView
    {
        Source = "http://google.com"
    }

    Content = browser;
}

Code in UWP MainPage.xaml.cs

public MainPage()
{
    this.InitializeComponent();

    LoadApplication(new PCL.App());
}

From the codes above, how to take the webview object declared in PCL to send to UWP, and how UWP receive the webview object send by PCL?

codingDummy
  • 122
  • 2
  • 14

0 Answers0