Xamarin将ContentPage转换为Activity

时间:2015-01-29 16:30:58

标签: xamarin.forms

我试图在Xamarin.Forms项目的下面的链接中使用此代码。所以我建立了一个接口,但我需要一些东西来转换,例如ContentPage into Activity。

http://www.saramgsilva.com/index.php/2014/using-xamarin-auth-oauth2authenticator-with-asyncawait/

由于

1 个答案:

答案 0 :(得分:1)

您应该使用Xamarin Forms Dependency Service来完成此任务。 http://developer.xamarin.com/guides/cross-platform/xamarin-forms/dependency-service/

在PCL中创建ILogin接口,然后在每个项目上实现它。然后,您应该可以从共享代码中调用它。