8 Answers, 1 is accepted
In order to enable the popup animation, you should set the InlineModeThreshold to less than the amount if items in your collection. This will force the ListPicker to use the popup view. Make sure you have a PopupItemTemplate prepared to handle the popup items. So if you have a list of 8 items and you set the threshold below 8 like this: InlineModeThreshold="5", you will get the popup.
Using the Telerik RadControls for Windows Phone example app as a reference, this PopupItemTemplate will populate with your items when the RadListPicker is tapped.
<
telerikInput:RadListPicker.PopupItemTemplate
>
<
DataTemplate
>
<
StackPanel
Orientation
=
"Horizontal"
Margin
=
"0, 27, 0, 24"
>
<
Rectangle
Fill
=
"{Binding ColorName}"
Width
=
"43"
Height
=
"43"
/>
<
TextBlock
Text
=
"{Binding ColorName}"
Margin
=
"16 -8 0 0"
/>
</
StackPanel
>
</
DataTemplate
>
</
telerikInput:RadListPicker.PopupItemTemplate
>
You can find the example application source code by looking in your telerik folder on your pc. If you installed it to the default directory, you will find it here: C:\Program Files (x86)\Telerik\RadControls for Windows Phone 7 Q2 2012\Examples. Just open the solution, look for the project named ListPicker, then open the file named Modes.xaml.
Good Luck,
Lancelot
Thank you for your answer, but this not works in v.2012.2 607 (and animations not work in the example application too).
I think this is because new implementation of ListPicker. I already had some issues with last version of the components.
(http://www.telerik.com/community/forums/windows-phone/listpicker/unhandled-exception-and-application-crash-after-update-to-2012-2-607.aspx)
P.S. Sorry for my bad english.
I'm not sure exactly what animations you are trying to achieve. There have a been a couple breaking changes, but if you could provide me with the code that you are using, I can reproduce the problem and provide you with a solution.
Lancelot
Thank you for reporting this issue. I can confirm that with our latest official release, no animation is being played when opening RadListPicker's popup. This is due to the fact that now RadListPicker uses internally RadDataBoundListBox for its popup scenarios. I've logged this issue in our backlog and we will do our best to fix it as soon as possible. Meanwhile, let us know if you encounter any further obstacles. I've also updated your Telerik points accordingly.
Greetings,Kiril Stanoev
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
This issue has already been addressed in our latest Internal Build. The fix will also be included in the official Q3 2012 release of RadControls for Windows Phone.
Let me know if you have further questions or need assistance.
Deyan
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.