开发者

Unable to Inherit from MediaElement Class

开发者 https://www.devze.com 2022-12-28 03:59 出处:网络
I am trying to create a custom MediaElement , and the 1st thing I need is to inherit it from the MediaElement .

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

0

精彩评论

暂无评论...
验证码 换一张
取 消