Reputation: 1217
I was giving an interview for a company and I was told by the architect that they are creating iOS apps from Xamarin.iOS ( NOT Xamarin Forms) with MvvmCross framework and they use storyboards for UI. But if the UI is very simple they use XAML to create them.
I never knew we can use XAML for Xamarin.iOS and Xamarin.Droid. We had a small discussion/argument if that's even possible. He said they were using it successfully.
My question, is it really possible to use XAML in Xamarin.iOS and Xamarin.Droid. Because, if we can do that, I feel no use of using Xamarin forms. If yes, can anyone provide some kind of documentation?
Thank you.
Upvotes: 0
Views: 2140
Reputation: 402
There is no way to design UI in XAML using Xamarin.Android or Xamarin.iOS, but you can include Xamarin.Forms page in Xamarin.Android or Xamarin.iOS app. This way you can have native app with UI using storyboards, but with some Xamarin.Forms pages designed in XAML.
There is a sample how to do that in Xamarin Forms samples project on GitHub.
Upvotes: 3
Reputation: 11787
Only Xamarin Forms support sharing of UI via XAML.
UI for iOS has to be made using xib or storyboard. For Android using AXML. Windows Phone, UWP, WinPhone Silverlight, Windows can use XAML for UI.
Upvotes: 1