UIElementRenderer Constructor

Hh221502.note(en-us,XNAGameStudio.41).gifNote
This constructor is available only when developing for Windows Phone.
Creates an instance of a UIElementRenderer object.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Interop (in microsoft.xna.framework.interop.dll)

public UIElementRenderer (
         UIElement rootElement,
         int textureWidth,
         int textureHeight
)

Parameters

rootElement
Type: UIElement
The UIElement to be rendered.
textureWidth
Type: Int32
The width of the texture to be rendered into.
textureHeight
Type: Int32
The height of the texture to be rendered into.

Use a UIElementRenderer object to render a Silverlight UIElement into an XNA Texture2D.

Windows Phone

Community Additions

ADD
Show: