Unable to Inherit from MediaElement Class
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:
Cu开发者_如何学GostomMediaControl : MediaElement
{
}
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
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
精彩评论