XamlCompilationOptions Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.EnumXamlCompilationOptions
- 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.