XamlBinaryWriter XamlBinaryWriter XamlBinaryWriter XamlBinaryWriter Class

Definition

Produces a pre-parsed binary representation of a XAML production.

public : sealed class XamlBinaryWriter
struct winrt::Windows::UI::Xaml::Markup::XamlBinaryWriter
public sealed class XamlBinaryWriter
Public NotInheritable Class XamlBinaryWriter
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The binary representation of XAML uses an XBF file extension. The binary representation enables performance advantages versus loading and parsing a XAML file as text. Loading the binary representation is most useful when loading XAML files that define large resources, such as the generic.xaml files that define templates.

XamlBinaryWriter is not intended for use by typical app code. It is intended for use by tools and processes that are directly involved in producing an app package on a developer's machine.

The XBF format is intended to be write-once. Anyone compiling into the XBF format should always maintain that same XAML in its text representation, so that tools or processes can edit the XAML, and so that the source XAML remains human-readable.

Methods

Write(IVector<IRandomAccessStream>, IVector<IRandomAccessStream>, IXamlMetadataProvider) Write(IVector<IRandomAccessStream>, IVector<IRandomAccessStream>, IXamlMetadataProvider) Write(IVector<IRandomAccessStream>, IVector<IRandomAccessStream>, IXamlMetadataProvider) Write(IVector<IRandomAccessStream>, IVector<IRandomAccessStream>, IXamlMetadataProvider)

Produces a binary representation of XAML. Input streams are produced in text representation, and output streams are populated with XAML in binary (XBF) representation.

Important

XamlBinaryWriter is not intended for use by typical app code. It is intended for use by tools and processes that are directly involved in producing an app package on a developer's machine.