Highlighting PlayTo / DLNA functionality in your Windows 8 Apps

 

Using the PlayTo functionality within a media application is a great way to enhance your media related app – but the methodology for the user to invoke the PlayTo feature in Windows 8 relies on a full working knowledge of the Charms bar (The user needs to select a device from the devices charm as he is about to play a video).

So in order to highlight this great feature I have added a new button on my Apps’ application bar that also invokes the PlayTo device menu:

image
PlayTo App Bar button in the ‘Easy Origami’ App

imageThe button is based on the one currently available in StandardStyles.XAML called “PlayAppBarButtonStyle”.  I simply copied the XAML and made a few changes as in the example below. 

NB If you don’t want to modify your StandardStyles.XAML – which is generally regarded as bad practice then you can add this mark-up to the XAML of your App.XAML file where it will also be automagically ‘found’!

 

The mark-up matches the mark-up for the existing “Play” button with only the text changing (to ‘Play To’)

image

And the button in your media page then calls the following method which invokes the ‘PlayTo’ Devices menu:

image

One thought on “Highlighting PlayTo / DLNA functionality in your Windows 8 Apps

Leave a Reply

Your email address will not be published.