The Media Center Sandbox

Resources and discussion for developing experiences in the Windows Media Center platform.
Welcome to The Media Center Sandbox Sign in | Join | Help
in Search

Overlay My Main Application Page

Last post 10-28-2011, 1:03 PM by joocer. 6 replies.
Sort Posts: Previous Next
  •  04-09-2011, 2:17 PM 10082

    Overlay My Main Application Page

    I have been searching for the past hour and can't find the simple solution of how to overlay my application page. I have a page I would like to overlay something like the built in media center slide deck. How to I get it to show up overtop as opposed to navigating to a new page? Sorry, I know this is probably quite basic.
  •  04-10-2011, 9:59 AM 10083 in reply to 10082

    Re: Overlay My Main Application Page

    It's a bit like doing overlays in web pages... you need to create the overlay and put it in your MCML, but make visible="false" on the element.

    Then, when you want to display the item, set visible="true" to bring it up. Put a NavigateInto in your overlay UI to get focus on the first item on the overlay, and put a ColorFill that captures mouse clicks behind the overlay to stop the page behind from being focused.

    Cheers,
    Andrew
  •  04-10-2011, 7:51 PM 10084 in reply to 10083

    Re: Overlay My Main Application Page

    As always, thanks!!
  •  08-15-2011, 7:44 PM 10127 in reply to 10084

    Re: Overlay My Main Application Page

    Hey Andy,

    I've got this all up and working finally. Thanks! Question for you. I've used NavigateInto to give my slide focus when it is visible. Once a button is clicked on my slide I lose focus to the backround. My navigate into is based on the slide being visible (property in my c# code). Is there a way to make sure it keeps the focus until my visible property (in c#) is set to false thus making the slide disappear? Or any thought on how to solve this one?
    Thanks!
  •  08-18-2011, 7:47 AM 10128 in reply to 10127

    Re: Overlay My Main Application Page

    I was able to fix this by removing key interactivity on all items in the background while my slide is visible.
  •  10-21-2011, 9:35 AM 10140 in reply to 10128

    Re: Overlay My Main Application Page

    The easier way to do that is to set <Panel Name="YourOverlay"  Navigation="ContainAll" >.... That way the navigation never gets outside of that panel.
  •  10-28-2011, 1:03 PM 10141 in reply to 10140

    Re: Overlay My Main Application Page

    eMpTy3000 that's genius, I've just used that in my app and it's stopped an annoyance I had with "popup" menus. Thanks.
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems