JC Borlagdan JC Borlagdan - 1 year ago 202
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?

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download