UIElementRenderer.Render Method

Renders a Silverlight UIElement into an XNA Framework Texture2D object.

Syntax

'Declaration
Public Sub Render
public void Render ()
public:
void Render()

Remarks

When using Render, Silverlight will change the currently active RenderTarget2D and render to it. By default, RenderTarget2D contents are not preserved when switching between RenderTargets. Developers should take care to issue drawing commands to a RenderTarget without using Render in the middle of the set of drawing commands, as this will change the active rendertarget, discarding the contents of that render target by default.

Render sets the current active RenderTarget2D to null upon completion.

Requirements

Namespace: Microsoft.Xna.Framework.Graphics

Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)

See Also

Reference

UIElementRenderer Class
UIElementRenderer Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Windows Phone