Using XAML compiler, we can directly compile XAMLs into intermediate language (IL) optionally.
Benefits:
- It performs compile time checking of any errors in XAML, thus notifies the user for any errors at compile time.
- It removes some of the overhead and instantiation time for XAML elements.
- It doesn’t include the XAML files into the final assembly and thus it reduces the assembly size.