Version

CreateRenderer Method (SmartWebControl)

Initializes a SmartRenderer associated with this element that assumes responsibility for creating a scene graph of user-interface elements and rendering (serializing) them to the end user.
Syntax
'Declaration
 
Protected Overridable Function CreateRenderer() As SmartRenderer
protected virtual SmartRenderer CreateRenderer()
Remarks

Inheriting controls must implement this factory method to associate their own custom SmartRenderer subclass with the SmartWebControl. A derived SmartRenderer must know how to compose an appropriate scene graph for their presentation. Making this factory method abstract allows independent SmartRenderer subclasses to be used by the internal framework during rendering.

The CreateRenderer method will be invoked by the base SmartWebControl class when it first calls EnsureRenderer, which is usually (but not necessarily) during the PreRender stage of the page lifecycle.

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