BAML vs. XAMLC

남 진우 21 Reputation points
2021-02-16T06:58:49.343+00:00

I heard from someone the reason why Xamarin.Forms does not use BAML since it has no such scenario.
He said in Xamarin.Forms, the binary format is mostly loaded in platform side, not in client side

I cannot understand the point. in my opinion, if the some app developer wanna to define same app ui-layout in both WPF and Xamarin.Forms, respectively.
they will use same scenario, but the resulted complied xaml's format will be different.

does anybody know why xamarin.forms does not use baml as a separated resource file format?
is there any historical reason?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,326 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 72,251 Reputation points Microsoft Vendor
    2021-02-16T08:44:43.303+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    XAML the content is loadable faster during runtime, because the XAML is enriched by tokens, and lexical analysis is completed.

    An XAML file can be compiled into a Binary Application Markup Language file with the .BAML extension as well, you can see the wikipedia's desccription.

    https://en.wikipedia.org/wiki/Binary_Application_Markup_Language

    Best Regards,

    Leon Lu


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.