I'm trying to see the framerate of a silverlight application. I'm using IE 8 and have created a new Silverlight app in Visual Studio and simply added a button and set a background color. I've tried it on a more complex app and had no success, so that's why I'm using the most basic of examples.
I've added <param name="EnableFrameRateCounter" value="true" />
to the object tag, and enabled Allow status bar updates via script as documented in the note on MSDN. I've tried it with and without debugging. If I enable EnableGPUAcceleration
I do get the status text from that but it's not what I'm looking for.
Any ideas?
Ok, so the same MSN link says "This property is not settable on instantiation." under the object Syntax header. There is a link to Settings.EnableFrameRateCounter Property that shows how to set these settings in code. It would have been nice if they had made that first page more clear.
In your app.xaml.cs in the Startup event, set it in code.
Application.Current.Host.Settings.EnableFrameRateCounter = true;
(In IE9, I had to show the Status Bar through the View menu > Toolbars)