Version

RenderStyle(HtmlTextWriter,Style) Method

Renders a repository-managed style to HTML as either an in-line style or a CSS class attribute.
Syntax
'Declaration
 
Protected Overloads Overridable Sub RenderStyle( _
   ByVal sink As HtmlTextWriter, _
   ByVal style As Style _
) 
protected virtual void RenderStyle( 
   HtmlTextWriter sink,
   Style style
)

Parameters

sink
Where to write the HTML.
style
A style instance managed by the StyleRepository.
Remarks

Style instances that you can access through your StyleContext or off of your view element are managed by the StyleRepository.

Before RenderStyle can be called, the SmartRenderer must be initialized on the UI elements' scene graph. RenderStyle will render nothing if this prerequisite hasn't been met.

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