简体   繁体   中英

Style MediaElement in Windows Universal

I am working on a windows universal app called ProPlayer and you may see this preview app on Windows Store . Now I am working on a new version and I used MediaElement instead of Microsoft player framework in this new version . I am trying to modify some parts of MediaElement but couldn't find any way . I used AreMediaTransportControlsEnabled to show this controls and generate a resource dictionary for media element style . I want to make background of MediaTransportControls transparent or change the opacity of these controls . 射击
(source: picofile.com )

How does it possible

Not possible for the system default media transport controls.

You need to create your control or just simply put something like a stackpanel and put it into a popup control to replace the default system media transport controls, cause the system default one doesn't expose required property you want.

There is a tutorial and the relevant sample for win8.1. I didn't try everything in UWP, but the principle is same, so you can start from there. And you can add more cool design on the panel to make your ProPlayer more PRO. :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM