The problem with the currently displayed item cannot be changed when Liskpicker uses bindings in Windows phone

Source: Internet
Author: User

Because my code has been drastically modified this article can only post the correct picture with the strange phenomenon of the code was completely deleted.

It is well known that Microsoft's General technology has a ComboBox used to implement the dropdown box.

And in WP according to Microsoft's argument is because ComboBox not for the touch of optimization so was deleted

Instead, it's the ListPicker in toolkit.

Try to create a resource binding yourself

The logic is probably to get a value from the key-value pair of the isolated store and then return a ListPicker selectedindex, and the binding is set to TwoWay bidirectional binding

And then run the time regardless of what is currently selected at the time for clicking ListPicker where the current display is always the first item

But when you click on the ListPicker, the dropdown box appears and you see the highlight is the one you chose.

Then unbind it instead by assigning the initial value to the page's constructor and then getting the changed value through SelectionChanged. All functions are normal

Ps: Then seriously consider that my binding has such a logic

If the key value pair does not exist in the current isolated store, the initial value given to 0 (the subscript for the first item in SelectedIndex is 0)

But even that doesn't explain why the dropdown box highlighted the correct target value.

Well, this article does not look at the confused. I don't even know what I'm talking about.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.