This question is locked. New answers and comments are not allowed.
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!
Thanks!
4 Answers, 1 is accepted
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
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:
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!
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
TextBlock control guidelines
0
Accepted
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
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 >>
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 >>