Xamarin.Forms Guides | Samples

Xamarin.Forms.Xaml.XamlCompilationAttribute Class

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

See Also: XamlCompilationAttribute

Syntax

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

Remarks

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

Requirements

Namespace: Xamarin.Forms.Xaml
Assembly: Xamarin.Forms.Xaml (in Xamarin.Forms.Xaml.dll)
Assembly Versions: 1.5.0.0, 2.0.0.0

The members of Xamarin.Forms.Xaml.XamlCompilationAttribute are listed below.

See Also: Attribute

Public Constructors

Public Properties

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