WP7 using LoopingSelector in UserControl

It seems like it should be simple. I apologize in advance if this is surprisingly stupid, but I just don't see it.

I want the text field to bind to a user control with two spinners. This is exactly how DatePicker tools work, but with user data. I can configure LoopingSelectors in usercontrol, no problem. But for my life I can’t figure out how to do this with a pop-up click on a text field. I was thinking about reverse engineering DatePicker code, but there is a lot going on, and I don’t think that it all relates to what I'm trying to do ... I also looked at ListPicker and LongListSelector, but my data really lends itself to the LoopingSelector format.

I spent a couple of days and did not find anything useful. I found some similar questions, such as - Implement the NumericUpDown control on Windows Phone 7?

But this really does not apply to the use of LoopingSelectors in a real-world scenario with a user control with the show / hide feature.

Any pointers would be greatly appreciated!

+3
source share
1 answer

For consistent user interaction, I would use the DatePicker implementation approach. I know that this is connected with more work than a sense of sanity, but I recently did just that to choose the time (hours / minutes / seconds), and it just seems natural.

0
source

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


All Articles