I am trying to create a custom media transport controls for a mediaplayer application where I could add my own buttons and functionality. The only thing I would need from the standard MediaTransportControl is the SeekBar.
I've tried fiddling around with the dictionary its way too complicated for the benefit I'm trying to achieve. Is there a simple way to do this or should I just give up?
Thanks!
Ok, got it!
Here is the recipe:
Add a separate XAML file to hold the Resource Dictionary for the new transport bar. Copy in it the file from the CustomMediaTransport sample. Make sure you change the x:local = "using:..." to your own namespace for your project.
Add the buttons that you want in the CommandBar section of the XAML code (you will see the other commandbar buttons there. The format for your custom command bar button is:
Add the code for the new buttons in a separate CS file. Replace yournamespace with your solution's name space.
And finally, use the new customized transport bar in the following way in your XAML code:
And voilà! Bob is your mother's brother!