Do not select the item selected in the tool list of the Windows Phone tool list

I am using the ListPicker control from the WP7 toolkit. I want to initially present a list with no items selected. Is there any way to do this?

+3
source share
2 answers

According to this blog post, List Picker works with the idea of ​​“there is always an active choice.”

The approach that I will follow should be that the first item in the list is the "not selected item" item. With appropriate values ​​(possibly a null identifier) ​​that you can identify later.

+4
source

ListPicker . null SelectedIndex -1, .

+3

Source: https://habr.com/ru/post/1790818/


All Articles