Share via


XamlCompilationAttribute 类

定义

用于控制在生成时还是运行时编译 XAML 的特性。

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

注解

默认情况下,生成时 XAML 编译处于关闭状态。

构造函数

XamlCompilationAttribute(XamlCompilationOptions)

使用指定的值创建新的 XamlCompilationAttribute

属性

XamlCompilationOptions

获取或设置指示在运行时还是编译时编译 XAML 的值。

适用于