Share via


EnableRedrawRegions (Silverlight Plug-in Object)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets a value that determines whether to visually indicate the areas of the plug-in that are being redrawn with each frame. This property is for performance tuning and visualization during development only; do not specify it for any deployed Silverlight-based application.

Syntax

object Element

<object ...>
  <param name="enableRedrawRegions" value="true"/>
  ...
</object>

Silverlight.js

Not applicable.

JavaScript

silverlightObject.settings.EnableRedrawRegions = bool;
value = silverlightObject.settings.EnableRedrawRegions;

COM

IXcpControl::Settings gets an IDispatch interface, which you can use to call EnableRedrawRegions.

Managed Code

Property Value

true if the areas of the plug-in that are being redrawn with each frame will be displayed; otherwise, false. The default value is false.

Remarks

The EnableRedrawRegions property is used during development to tune the performance of your application by showing the areas of the plug-in that are being redrawn with each frame. Although it is possible to set this particular property in the object tag, typically you set the various performance tuning / visualization properties by using an event handler, because some of the other properties are not settable in the object tag. If you are using JavaScript, you typically do this in an OnLoad handler for the DOM Loaded event. If you are using managed code, you typically do this in a handler for the Loaded event on the visual root of your content.