UIElementRenderer Constructor

Creates an instance of a UIElementRenderer object.

Syntax

'Declaration
Public Sub New ( _
         rootElement As UIElement, _
         textureWidth As Integer, _
         textureHeight As Integer _
)
public UIElementRenderer (
         UIElement rootElement,
         int textureWidth,
         int textureHeight
)
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.

Remarks

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

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