SilverlightPlugin.EnableFrameRateCounter Property

Gets or sets a value that indicates 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
Public Overridable Property EnableFrameRateCounter As Boolean
    Get
    Set
'Usage
Dim instance As SilverlightPlugin
Dim value As Boolean

value = instance.EnableFrameRateCounter

instance.EnableFrameRateCounter = value
public virtual bool EnableFrameRateCounter { get; set; }

Property Value

Type: System.Boolean
true if the frames-per-second (fps) of the current rendered Silverlight content will be displayed in the hosting browser's status bar; otherwise, false.

Remarks

The EnableFrameRateCounter property is useful as a diagnostic to discover 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 parts 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

SilverlightPlugin Class

SilverlightPlugin Members

System.Web.UI.SilverlightControls Namespace