![]() ![]() “TimedTextSourcePresenter” – this is where the closed captions will be presented.ContentPresenter – this is where the player controls will be displayed.MediaPlayerPresenter – this is where the actual video content will be displayed.Inside generic.xaml I’m going to locate the Style for the MediaPlayerElement:Īs you can see, the Style for the MediaPlayerElement is made up of a few different components: For this we go to generic.xaml, typically located at C:Program Files (x86)Windows Kits10DesignTimeCommonConfigurationNeutralUAP9.0Generic – Note that this may vary based on which platform SDK you have installed. Whilst Microsoft now do a good job of documenting the built in styles online (for example the styles and templates for the MediaTransportControls element is defined at ), there is nothing like looking at what ships in the platform. Ok, let’s get started by looking for the built in styles. ![]() In this post I’ll do just that, I’ll show you where to find the built in styles and how to start customizing them, including some gotchas that you should be aware of. Towards the end of the post I showed how you can override some of the built in behaviour but I was yet to show you how you can adjust the visual style of the player or the controls. In my previous post, Building Media Applications for the Universal Windows Platform (UWP) using the MediaPlayerElement, I covered the basics of building a UWP media application using the MediaPlayerElement.
0 Comments
Leave a Reply. |