what is exactly XAMLC ?

남 진우 21 Reputation points
2021-02-16T05:56:22.877+00:00

As far as I know, Xamarin.Froms support pre-compilation of xaml using xamlc.
I've read xamc compile xaml to IL and merge it to App's DLL/EXE.

In contrast, WPF, UWP support pre-compilation of xaml using BAML as a resource with App's DLL.

Question is

what is exactly XAMLC in Xamarin.Forms.. ?

and why Xamarin.Forms does not accept BAML-like complication method. ?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,366 questions
Universal Windows Platform (UWP)
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
822 questions
0 comments No comments
{count} votes

Accepted answer
  1. Nico Zhu (Shanghai Wicresoft Co,.Ltd.) 12,866 Reputation points
    2021-02-16T06:41:57.157+00:00

    Hello, Welcome to Micorosoft Q&A,

    what is exactly XAMLC in Xamarin.Forms.. ?

    For XAMLC (xaml complication), you could refer XAML Compilation in Xamarin.Forms document. and it offers a number of benefits, such as xaml checking in complie-time reduce the file size of the final assembly.

    why Xamarin.Forms does not accept BAML-like complication method.

    Currently, we have not found the document to explain it, but in my opinion , Loading the binary representation is most useful when loading XAML files that define large resources, such as the generic.xaml files that define templates. However, xamarin form has no such scenario, it will load the binary file in each platform but not in the forms client side.


    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.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.