Partager via


MaxFrameRate (Silverlight Plug-in Object)

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

Gets or sets the maximum number of frames that Silverlight can render per second.

Syntax

object Element

<object ...>
  <param name="maxframerate" value="int"/>
  ...
</object>

Silverlight.js

Silverlight.CreateObject(,,,{maxFrameRate:'int'});
-or-
Silverlight.CreateObjectEx({properties:{maxFrameRate:'int'}});

JavaScript

int = silverlightObject.settings.MaxFrameRate;
silverlightObject.settings.MaxFrameRate = int;

COM

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

Managed Code

Property Value

An integer value that specifies the maximum number of frames to render per second. The default value is 60.

Remarks

This property specifies the effective maximum frame rate for your application at run time. The actual frame rate that Silverlight content renders depends on system load performance and other factors.

Note that there is a mismatch in naming between the parameter in Silverlight.js functions and the other access models. The Silverlight.js parameter is named framerate, but the object element parameter and other properties are named MaxFrameRate. Both names refer to the same underlying property.

You can see the MaxFrameRate value by enabling a performance-tuning option that displays frames per second for Silverlight rendering. For more information, see EnableFramerateCounter (Silverlight Plug-in Object).