This is a migrated thread and some comments may be shown as answers.

ListPicker on TextBlock

4 Answers 61 Views
ListPicker
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Matt
Top achievements
Rank 1
Matt asked on 08 Jul 2013, 05:05 PM
Would it be possible to implement a ListPicker style expander menu on a TextBlock? I have a form where I don't really want/need take up the space required to put a ListPicker control, and it's not a critical data-entry form anyways, so instead I would like the user to just click/tap on a TextBlock and have the expander pop-up for selection.

Thanks!

4 Answers, 1 is accepted

Sort by
0
Lancelot
Top achievements
Rank 1
answered on 08 Jul 2013, 08:01 PM
Hi Matt,

You could go with a RadPickerBox instead of a RadListPicker. Here are some links to help you along:

http://www.telerik.com/help/windows-phone/radpickerbox-visual-structure.html
http://www.telerik.com/help/windows-phone/radpickerbox-features-content-and-popup-content.html

If you want the expanding action of a RadListPicker instead of a popup, you can use the ListPicker without a Header and it will be approximately the same size as a TextBox.

Good luck,
Lancelot
0
Matt
Top achievements
Rank 1
answered on 09 Jul 2013, 01:14 AM
Thanks Lancelot.

Not exactly what I was looking for though. I was thinking more like a TextBlock that can be tapped and then the popup can open. I don't want to 'bloat' the control with added space around the text. Something like this:
<TextBlock Grid.Row="0" Grid.Column="1" Text="{Binding Name}" Margin="9,-7,0,0" Style="{StaticResource PhoneTextNormalStyle}" x:Name="txtDefaultType" Tag="txtDefaultType_PopupOpen" />

Then within the tap event handler is fired, the same type of popup window will open and let me select a new value.

Thank you!
0
Matt
Top achievements
Rank 1
answered on 09 Jul 2013, 01:02 PM
Perhaps I need to re-think my design. According to the design standards, "...Users don’t interact with TextBlock controls." and "A TextBlock control doesn’t include actionable controls."

TextBlock control guidelines
0
Accepted
Deyan
Telerik team
answered on 11 Jul 2013, 03:27 PM
Hello Matt,

Actually you can restyle the inline portion of the ListPicker/PickerBox control to look like a text block.

Anyway, it is really not recommended to use TextBlock instances as user interaction elements as normally the users do not expect to be able to tap on text unless it is underlined or is the content of a button.

I hope this helps.

Regards,
Deyan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINDOWS PHONE 7.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
ListPicker
Asked by
Matt
Top achievements
Rank 1
Answers by
Lancelot
Top achievements
Rank 1
Matt
Top achievements
Rank 1
Deyan
Telerik team
Share this question
or