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
XamlCompilationOptions
Attributes

Fields

Compile 2

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

Skip 1

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

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