views:

26

answers:

1

Hi, I'm trying to add a Global UIElement in my Windows Phone 7 app (ie. a UIElement that is shared across all pages)

Specifically, I'm trying to get the MediaElement to continue playing when I navigate to different pages.

I've tried playing with the Application.RootVisual / PhoneApplicationFrame but I can't seem to get it to work

Any thoughts?

A: 

Add a Popup with no parent.

Michael S. Scherotter
I'm not sure I follow. If you use a Popup -- you'd have to put it within the PhoneApplicationPage right? Meaning if you Navigate away the music would stop playing. Also I can't get the MediaElement to play anything when it's inside a Popup
letstango
You don't have to set the parent of the Popup.
Michael S. Scherotter
Works just dandy! Didn't realize what you meant by "no parent" was create it in the code behind and just show it. Was trying to add it from xaml.
letstango