Share via


Silverlight.MaxFrameRate Property

Gets or sets the maximum number of frames to render per second for the Silverlight document.

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

Syntax

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

value = instance.MaxFrameRate

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

Property Value

Type: System.Int32
The maximum number of frames to render per second.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The MaxFrameRate property is set to a value that is less than 0.

Remarks

The default value is 0, which indicates that no maximum frame rate is specified.

The frames per second setting is the smaller of these two numbers:

  • the current frames per second being displayed in the browser

  • the MaxFrameRate

The number of frames per second for the current rendered Silverlight content affects video playback, storyboard animations, and other settings. You can use the frame rate information to identify performance bottlenecks in your Silverlight application.

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

EnableFrameRateCounter