Metro Nuggets

Bitesized tidbits for building Modern (Metro) apps.

Tag Archives: Controls

PhoneFlipMenu Control for Windows Phone [UPDATED]

UPDATE: This control is now part of the coding4fun toolkit for Windows Phone. It’s usage is the same, but it’s been renamed to the AppBarPrompt. Any future updates will done to that, and not this version. Sample usage of the new prompt can be seen here.

The Windows Phone Mail app has, when you’re in an email, a respond button which when tapped, brings up three further options, as illustrated below:
Screen Capture (3) Screen Capture (2)

On the left we have the icons on the application bar, tap the respond button (on the left) and you get the options as shown in the picture on the right.

There is, however, no way of doing that in your own apps, so I created this control that does it.

Read more of this post

PhoneListBox Control for Windows Phone

There are a few things I’ve been doing to work around a couple of scenarios when it comes to using the ListBox in Windows Phone. The first is when your ListBox has no items I want it to show something to the user stating there are no items, the other involved limiting the number of items that are enabled based on whether the app was in its Trial Mode.

The first scenario had seen me using a TextBlock and a ListBox and hiding one or the other depending on how many items were in the ListBox, it wasn’t really ideal. The other scenario, well, I didn’t have any workaround for that, but I already had what I’m about to show you done for the first scenario, so modified it for the second scenario. Read on to find out more.

Read more of this post