Share via


XamlCompilationAttribute Class

Definition

Attribute that controls whether XAML will be compiled at build time or run time.

[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Module, Inherited=false)]
public sealed class XamlCompilationAttribute : Attribute
type XamlCompilationAttribute = class
    inherit Attribute
Inheritance
System.Attribute
XamlCompilationAttribute
Attributes
System.AttributeUsageAttribute

Remarks

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

Constructors

XamlCompilationAttribute(XamlCompilationOptions)

Creates a new XamlCompilationAttribute with the specified value.

Properties

XamlCompilationOptions

Gets or sets a value that tells whether to compile XAML at run time or compile time.

Applies to