Xamarin.Forms Guides | Samples

Xamarin.Forms.Xaml.XamlCompilationOptions Enumeration

Enumerates values that control when XAML is compiled into IL.

Syntax

[System.Flags]
public enum XamlCompilationOptions

Remarks

Enabling build-time compilation by specifying the Compile option checks the XAML at build time, reduces loading time, and produces a smaller assembly or application.

By default, XAML compilation at build time is turned off.

Members

Member NameDescription
CompileCompile the XAML for the class or project when the application is built.
SkipCompile the XAML for the class or project when the application is run on the device.

Requirements

Namespace: Xamarin.Forms.Xaml
Assembly: Xamarin.Forms.Xaml (in Xamarin.Forms.Xaml.dll)
Assembly Versions: 1.5.0.0, 2.0.0.0

The members of Xamarin.Forms.Xaml.XamlCompilationOptions are listed below.

See Also: Enum

Public Fields

CompileXamlCompilationOptions. Compile the XAML for the class or project when the application is built.
SkipXamlCompilationOptions. Compile the XAML for the class or project when the application is run on the device.