Export (0) Print
Expand All

MaxFrameRate (Silverlight Plug-in Object)

Silverlight

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

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

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

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).

Community Additions

ADD
Show:
© 2014 Microsoft