views:

70

answers:

2

Hi,

I am trying to create a custom MediaElement , and the 1st thing I need is to inherit it from the MediaElement .

But this is simply not happneing when I try to inherit like following:

CustomMediaControl : MediaElement
{

}
A: 

MediaElement is declared a sealed class -- cannot be inherited.

Documentation is here: http://msdn.microsoft.com/en-us/library/system.windows.controls.mediaelement(VS.95).aspx

Jay
+1  A: 

Depending on what you're trying to achieve this might not be suitable, but if you're using Silverlight have a look at the Silverlight Media Framework http://smf.codeplex.com/.

It comes with a whole heap of features and it has it's own mediaelement, which you might be able to use as your base.

Good luck, Ola

Ola Karlsson