XamlCompilationOptions Enum

Definition

Enumerates values that control when XAML is compiled into IL.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum XamlCompilationOptions
type XamlCompilationOptions = 
Inheritance
System.Enum
XamlCompilationOptions
Attributes
System.FlagsAttribute

Fields

Name Value Description
Skip 1

Skip the compilation for this type or assembly. The XAML will be parsed, and the object graph constructed, at runtime.

Compile 2

Compile the XAML for the class or project when the application is built.

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.

Applies to