Version

PostRenderChild Method

Notifies a parent UIElement following the rendering of one of its children.
Syntax
'Declaration
 
Protected Overridable Sub PostRenderChild( _
   ByVal sink As HtmlTextWriter, _
   ByVal child As UIElement _
) 
protected virtual void PostRenderChild( 
   HtmlTextWriter sink,
   UIElement child
)

Parameters

sink
The sink into which to deposit additional markup as may be required.
child
The child UIElement that has just rendered.
Remarks

The base class implementation of this method does nothing. Inheritors may override this method to track information about the progress of the rendering, or follow the rendering of certain children with special rendering by the parent.

An example of when overriding PostRenderChild is necessary is if a parent containing this UIElement must render markup after every other child UIElement. In this example, the implementation provided by the subclass would need to maintain a counter, incrementing it as it receives each notification. On every second notice, the implementation could trigger special rendering code in the base class to produce this markup.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also