Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Phone Dropdown

I see that there is not a dropdown/combobox offered in the windows phone toolbox. I can see that there has to be a way to create one because in the settings of the phone, choosing a theme is essentially a dropdown menu.

Does anyone know where I can get sample code how to create one? I have seen a few samples, but the xaml seems really long and complicated. Is it really that difficult to create this control?

like image 390
Nick LaMarca Avatar asked Apr 13 '11 19:04

Nick LaMarca


People also ask

Is Windows Phone still usable?

Will my device still work after December 10, 2019? Yes. Your Windows 10 Mobile device should continue to work after December 10, 2019, but there will be no updates after that date (including security updates) and device backup functionality and other backend services will be phased out as described above.

Will Microsoft try Windows Phone again?

Microsoft isn't making another Windows phone for one simple reason. Going all in with Android on its dual-screen phone for 2020 is a play some Microsoft-watchers think is long overdue.

Are Lumia phones discontinued?

Microsoft Lumia (previously the Nokia Lumia Series) is a discontinued line of mobile devices that was originally designed and marketed by Nokia and later by Microsoft Mobile.

Is Windows Phone Store closed?

The Windows Phone Store officially shuts down today (via Neowin). Following the shutdown, you will no longer be able to download apps from the store. Windows Phone 8.1 has been out of official support for well over a year, but the shut down of the Windows Phone Store kills the operating system off even more.


1 Answers

You can use the Silverlight for Windows Phone Toolkit (You really should be using this). The ListPicker Control will do what you want.

Here is an in-depth tutorial on how to use it: http://www.windowsphonegeek.com/articles/listpicker-for-wp7-in-depth

Here is a description of it (from here):

ListPicker

Comboboxes just aren't cool in WP7 dev. So use the ListPicker instead. Two formats available. The first expands in place to give you options. Useful for short lists. The second takes you over to another page witha full listbox to choose from then returns to the calling screen. You can see this in use on WP7 when you change Settings / Ringtones & Sounds.

like image 55
theChrisKent Avatar answered Sep 29 '22 00:09

theChrisKent