How to implement a standard interface to replace Windows Phone 7 ComboBox

I am trying to implement a standard user interface replacement for comboboxes on Windows Phone 7. This is the TextBox + text editor. Goes to a new page with a list that you can see on the emulator settings page.

I had the following problems when trying to implement this approach, specifically related to TextBox:

  • If I use ReadOnly TextBox, the text appears in light gray, which I do not want. I want the plain black font there.
  • If I do not use ReadOnly TextBox, the virtual telephone keypad will appear in some rare situations, even when I handled the MouseEnter event. I cannot play sequentially when a keyboard appears.

What is the best approach to implement this behavior?

+4
source share
2 answers

Did you think you were just using a TextBlock with an invisible button at the top? Or tie a gesture to accept a tap event?

You can also check out Alex's implementation here in the select box.

Boxer implementation for WP7. - Alexey Yakhnin's blog

+4
source

The Windows Phone Toolkit has a ListPicker , which is quite flexible and easy to use.

+5
source

All Articles