view raw
JC Borlagdan JC Borlagdan - 6 months ago 90
C# Question

Difference between AXML and XAML?

I'm new to Visual Studio Xamarin Cross-platform mobile development and I keep on searching about AXML I just can't find any tutorial for designing and applying an MVC approach.

I have a lot of questions regarding this actually. But i'll just leave this 3 here first.

  1. What is their difference?

  2. Can xaml designs be applied in axml?

  3. How do I apply my css to axml files?


1 - What is their difference?

AXML: Describe the UI for only Android apps. These are the same files used by Android native applications.

XAML: Specifies Xamarin.Forms layouts; these files describe a cross platform layout that each platform then renders in their native controls

2 - Can xaml designs be applied in axml?

Xaml designs cannot be directly copied into Xaml (as they specify different controls) but they can be ported to axml. Conceptually, xaml files describe they describe how a UI should look on both platforms.

3 - How do I apply my css to axml files?

Cascading style sheets (CSS) are not applicable to Xaml as they describe how to style HTML. To style Xaml, look at the styles API used by Xamarin.Forms