Windows Phone 7 Pop-up window

10,582

Solution 1

You should avoid the Popup class. At the recent PDC they said it wasn't hardware accelerated or something. I'd place a Canvas or Grid or combo of both at the bottom of the page (so its on top, but you can also set Z order) and translate it off the screen. Then animate it on. Look at Collapsing the control when not used if you're having problems with it altering layout or using resources.

Myself, as I've a few years under my belt, I'd write a new control and use the parts and states model to transition it on and off etc. but if you're new to Silverlight then this is maybe a head-jar.

If you expect to be learning Silverlight fully, check out Karen Corby's MIX08 session on control authoring. In fact, check out all the sessions at http://videos.visitmix.com/

http://videos.visitmix.com/MIX08/T20

Luke

Solution 2

The coding4fun Windows Phone Toolkit includes an example of doing a popup window (for an about box) that works correctly. I've found it very useful.

http://coding4fun.codeplex.com/

Solution 3

It was probably the popup class for the actual popup window with other supporting controls (buttons, textblock, etc) being used.

Share:
10,582
Dan Sewell
Author by

Dan Sewell

Trying my hand at this C# silverlight lark..

Updated on June 04, 2022

Comments

  • Dan Sewell
    Dan Sewell almost 2 years

    Ive used an app which uses a type of popup window. When you click on some specific, a 'popup' scrolls up from the bottom of the screen and fills the whole window. If i remember correctly its semi transparent. It has several text sections and a range of buttons on it. What sort of control is this?