C# Class DynamicXaml.ResourcesSystem.BamlRootElementCheck

Adapted from the StylesExplorer project on codeplex. The original class is able to fully parse the BAML. This class is reduced to read the root element to identify whether it is a ResourceDictionary or not. That way we can skip instantiating things that we shouldn't instantiate.
Mostra file Open project: flq/XamlTags Class Usage Examples

Public Methods

Method Description
BamlRootElementCheck ( BamlBinaryReader reader ) : System
RootElement ( ) : string

Private Methods

Method Description
ComputeBytesToSkip ( ) : void
EnsureInit ( ) : void
ProcessNext ( ) : void
ReadAssemblyInfo ( ) : void
ReadAttributeInfo ( ) : void
ReadDocumentStart ( ) : void
ReadElementStart ( ) : string
ReadPiMapping ( ) : void
ReadStringInfo ( ) : void
ReadTypeInfo ( ) : void

Method Details

BamlRootElementCheck() public method

public BamlRootElementCheck ( BamlBinaryReader reader ) : System
reader BamlBinaryReader
return System

RootElement() public method

public RootElement ( ) : string
return string