Silverlight

Unit Testing the Setting of MediaElementState in Silverlight

I recently had the need to change the state of a MediaElement to coincide with other page functionality.  You can easily change the state of a MediaElement from the code-behind but you can’t unit test this.  At first I thought, it would be easy to just bind the CurrentState property to a ViewModel property but …

Unit Testing the Setting of MediaElementState in Silverlight Read More »

WP7 MediaElement Memory Leak

Currently trying to fix a memory leak.  Don’t have a lot of experience troubleshooting these so figured I would post about.  The memory leak occurs when you replay a MediaElement in the MediaEnded event. I started with a new WP7 app added the following xaml to the page: <MediaElement AutoPlay=”True” Source=”MyShortMovie.wmv” MediaEnded=”MediaElement_MediaEnded”/> and the following …

WP7 MediaElement Memory Leak Read More »