In my previous post, I talked about the Silverlight Media Framework (SMF). As the name implies, SMF is so much more than a video player, it’s a framework. The project is rich with nuggets of Silverlight goodness; today I would like to pay homage to one of my favorite classes: the SimpleEventArgs (in Microsoft.SilverlightMediaFramework).
Have you ever been in a scenario where you just want to pass an object through an event the EventArgs without having to create custom EventArgs for each type of event? SimpleEventArgs solves this by using generics, and asks only for the class. This one class has saved me countless amounts of time by not having to code up custom EventArgs.
Almost forgot…SimpleEventArgs are Scriptable by default, making this class available from JavaScript.
Thanks guys SMF team.
FULL DISCLOSURE: This code comes directly from the Silverlight Media Framework (http://smf.codeplex.com) project. Visit the project to get the complete source.


