Share via


Silverlight.EnableFrameRateCounter Property

Gets or sets a value that determines whether to display the current frame rate in the hosting browser's status bar.

Namespace:  System.Web.UI.SilverlightControls
Assembly:  System.Web.Silverlight (in System.Web.Silverlight.dll)

Syntax

'Declaration
<BrowsableAttribute(True)> _
Public Overridable Property EnableFrameRateCounter As Boolean
    Get
    Set
'Usage
Dim instance As Silverlight
Dim value As Boolean

value = instance.EnableFrameRateCounter

instance.EnableFrameRateCounter = value
[BrowsableAttribute(true)]
public virtual bool EnableFrameRateCounter { get; set; }

Property Value

Type: System.Boolean
true if the frame rate is displayed; otherwise, false. The default value is false.

Remarks

The EnableFrameRateCounter property is useful as a diagnostic to identify performance bottlenecks in your application.

The current frame rate that is displayed on the left side of the browser status bar indicates the optimal frame rate that would apply without an upper frame rate limit being set by the MaxFrameRate property.

The number of frames per second for the current rendered Silverlight content affects video playback, storyboard animations, and other settings.

You can see the portions of the Silverlight plug-in that are being redrawn each frame by setting the EnableRedrawRegions property to true.

The frame rate counter feature that is enabled by this property is supported only for Microsoft Internet Explorer on Windows XP Service Pack 2 or later or Windows Vista.

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference

Silverlight Class

Silverlight Members

System.Web.UI.SilverlightControls Namespace

MaxFrameRate

EnableRedrawRegions