All prompts barely appear

Feb 11, 2012 at 10:51 AM

I am new. I wanted to use prompts to show messages in my app.

I tried AboutPrompt, and MessagePrompt too. The problem is, they only appear at the bottom of the page, that too only a few pixels, and the remaining is hidden below. It doesn't appear on the top and completely.

I created another project just to try this and there it worked properly.

 private void ApplicationBarIconButton_Click(object sender, System.EventArgs e)
            if (SmallName.Text == "")
                var messagePrompt = new MessagePrompt
                    Title = "Simple Message",
                    Message = "This is a demo of the Coding4Fun MessagePrompt."
        	// If not empty, do the other things.

Feb 11, 2012 at 6:19 PM

I'm betting your doing something on your primary container that I didn't account for.

so you have


    PANEL (grid, canvas, panel, ...)


Betting that is what could be causing the issue, could you create a bug with a repo with whatever properties that has so i can get this corrected?  This way I can create a test case in the test app.

Feb 13, 2012 at 1:47 PM

I am using StackPanel all the way. My LayoutRoot is a StackPanel, and I am also using multiple StackPanels inside it.

Feb 13, 2012 at 1:56 PM

Yes! That's it, its reproducible.  Just make the LayoutRoot as a StackPanel.

Can I do anything to help? I haven't created a bug.

Feb 13, 2012 at 5:01 PM

The issue is the stack panel as the root.  Wrap it with a grid and you'll be fine.




      <StackPanel> <!-- your stack panel -->

Feb 13, 2012 at 5:07 PM

The why:  StackPanels scrunch stuff and are like lego bricks.  Items get added above or below rather than being able to do stuff with a z-index.  They also get scrunched.

A grid / canvas allow me to append stuff that takes everything over