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

About Xamarin.Forms PCL Depedency Service..

$
0
0

Hello,

is there any way to return a platform specific controls with dependency services?

ie: make an interface that returns a Map for each platform specific projects. i can't get around with casting types. i wrote an interface that return Forms.View and in the iOS project trying to return MKMapView but casting does not work as you guess.

for writing a platform specific codes with platform specific controls, is the only way is using SAP approach? Or calling a native Pages from PCL's (like in the FormsToNative example)

i try the both ways and both of them is worked yes, but for example calling an iOS UIViewController with an UITabbedBarController in Xamarin.Forms MasterDetail page has a huge performance problem(you can't jump the other tab by just clicking it, you have to wait with click like a long tab gesture and it goes to other pages). and if you use SAP the code testing and reading is not very good for development.

if i am not doing something wrong it seems SAP is much more good way to write Forms Apps, because unlike the most examples on internet you have to merge platform specific and forms powers together.

So why most of the long time xamarin developers choose plc approach?

Thanks..


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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