Export (0) Print
Expand All
0 out of 2 rated this helpful - Rate this topic

CompositionTarget.Rendering Event

Occurs when the core Silverlight rendering process renders a frame.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)
public static event EventHandler Rendering

Use the general EventHandler delegate for this event. Rendering uses the EventHandler delegate and EventArgs event data by its strict signature. However, you can base a handler on EventHandler and then cast the event data to RenderingEventArgs. Then you can get the RenderingTime property value for that occurrence of the event.

When the event occurs, it means that there is a frame of visuals available to render to the Silverlight content surface. You can then modify the visuals or any other aspect of your application on a per-frame basis within your handler.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.