C# Class ExoWeb.Templates.MicrosoftAjax.Block

Represents a block of markup in a template, which could be a bound element, control, or just plain text markup.
Mostrar archivo Open project: vc3/ExoWeb

Public Methods

Method Description
ToString ( ) : string

Protected Methods

Method Description
Parse ( string source, string markup ) : List

Parses and returns the blocks represented by the specified template markup.

Private Methods

Method Description
Abort ( AjaxPage page, string templateNames, TextWriter writer ) : void

Renders the block's markup to the specified writer in the context of the specified page.

EnsureValidMarkup ( XmlNode node ) : void
GetAttributes ( XmlElement element ) : List
GetBinding ( XmlElement element, string attributeName ) : Binding
GetBoolean ( XmlElement element, string attributeName ) : bool?
GetDefaultProperty ( XmlNode node ) : string
GetElementMarkup ( XmlElement element ) : string

Gets the markup for the start element tag.

GetLiteralTokens ( XmlElement element, string attributeName ) : string[]
GetMarkup ( XmlNode node ) : string

Gets the HTML markup for the specified XmlNode.

GetStringLiteral ( XmlElement element, string attributeName ) : string
GetTemplate ( XmlElement element ) : string

Gets the HTML template for the specified XmlNode.

IsTemplate ( Control control ) : bool

Determines whether the given control is a template (should have the sys-template class)

ParseChildren ( string source, XmlElement element, bool withinTemplate ) : List

Parses the children of the specified element into a list of template blocks.

ParseChildren ( string source, XmlElement element, bool withinTemplate, int lastNestedTemplateIndex, int &nestedTemplates ) : List

Parses the children of the specified element into a list of template blocks.

Render ( AjaxPage page, string templateNames, TextWriter writer ) : void

Renders the block to the specified writer in the context of the specified page.

RenderContextBeginMarker ( Context context, string parentTagName, TextWriter writer ) : void

Renders an element that marks the beginning of a template context in rendered HTML.

RenderContextEndMarker ( Context context, string parentTagName, TextWriter writer ) : void

Renders an element that marks the end of a template context in rendered HTML.

Method Details

Parse() protected static method

Parses and returns the blocks represented by the specified template markup.
protected static Parse ( string source, string markup ) : List
source string
markup string
return List

ToString() public method

public ToString ( ) : string
return string