This question is locked. New answers and comments are not allowed.
Hello! I'm recently trying to implement a DataboundListbox with wrap mode and reading on the documentation (http://www.telerik.com/help/windows-phone/raddataboundlistbox-features-virtualizationstrategies.html), I should be able set t the ItemHeight and ItemWidht properties when defining StackVirtualizationStrategyDefinition properties.
I have no idea how to implement this behaviour differently!
I have no idea how to implement this behaviour differently!
6 Answers, 1 is accepted
0
Lorenzo
Top achievements
Rank 1
answered on 26 Jan 2014, 04:43 PM
Uhm, I don't know why, but it seems that iI cut part of the message away.
What i wanted to say is that i can't find the way to set those options while designing in xaml. I attached an example of the behavior.
What i wanted to say is that i can't find the way to set those options while designing in xaml. I attached an example of the behavior.
0
Hi Lorenzo,
Thank you for contacting us.
The StackVirtualizationStrategyDefinition does not support item width and item height. One way to achieve the result you're looking for would be to do something like this:
Give it a try and let us know how it goes.
Regards,
Kiril Stanoev
TelerikIf you want to get updates on new releases, tips and tricks and sneak peek previews directly from the developers working on the UI for Windows Phone, subscribe to the blog feed now.
Thank you for contacting us.
The StackVirtualizationStrategyDefinition does not support item width and item height. One way to achieve the result you're looking for would be to do something like this:
<
telerik:RadDataBoundListBox
x:Name
=
"listBox1"
Height
=
"200"
>
<
telerik:RadDataBoundListBox.ItemContainerStyle
>
<
Style
TargetType
=
"telerik:RadDataBoundListBoxItem"
>
<
Setter
Property
=
"Width"
Value
=
"200"
/>
<
Setter
Property
=
"BorderThickness"
Value
=
"2"
/>
<
Setter
Property
=
"BorderBrush"
Value
=
"Blue"
/>
<
Setter
Property
=
"Background"
Value
=
"Red"
/>
</
Style
>
</
telerik:RadDataBoundListBox.ItemContainerStyle
>
<
telerik:RadDataBoundListBox.VirtualizationStrategyDefinition
>
<
telerik:StackVirtualizationStrategyDefinition
Orientation
=
"Horizontal"
/>
</
telerik:RadDataBoundListBox.VirtualizationStrategyDefinition
>
</
telerik:RadDataBoundListBox
>
Give it a try and let us know how it goes.
Regards,
Kiril Stanoev
TelerikIf you want to get updates on new releases, tips and tricks and sneak peek previews directly from the developers working on the UI for Windows Phone, subscribe to the blog feed now.
0
Lorenzo
Top achievements
Rank 1
answered on 27 Jan 2014, 05:37 PM
Thanks for the response, it works like a cake! thank you very much.
I have another issue however. It's not connected to the previous issue but i don't want to create too many discussions so i'll keep it here.
I'm trying to implement an ItemAdded animation to the previous, more specifically a RadPlaneProjectionAnimation.
If i use the same exact animation on the Itemremoved event the program works fine, but if I use that on the said ItemAdded event, the items don't load correctly and they don't show up. ( i see brief artifacts on the screen ). If I use for example a RadFadeAnimation the ItemAdded event works as intended, but that's not the animation I'm looking for.
I have another issue however. It's not connected to the previous issue but i don't want to create too many discussions so i'll keep it here.
I'm trying to implement an ItemAdded animation to the previous, more specifically a RadPlaneProjectionAnimation.
If i use the same exact animation on the Itemremoved event the program works fine, but if I use that on the said ItemAdded event, the items don't load correctly and they don't show up. ( i see brief artifacts on the screen ). If I use for example a RadFadeAnimation the ItemAdded event works as intended, but that's not the animation I'm looking for.
0
Hi Lorenzo,
Could you please send us a sample project reproducing the issue. This way we will be able to assist you faster.
Regards,
Kiril Stanoev
Telerik
Could you please send us a sample project reproducing the issue. This way we will be able to assist you faster.
Regards,
Kiril Stanoev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peek previews directly from the developers working on the UI for Windows Phone, subscribe to the blog feed now.
0
Thomas
Top achievements
Rank 1
answered on 01 Feb 2015, 06:18 AM
I do want to point out that in the Defining Orientation section of the Windows 8 XAML documentation, it still references ItemHeight and ItemWidth as controlling the layout.
0
Hello Thomas,
Thank you for the valuable feedback. We will remove these properties from the documentation on the next update.
Regards,
Rosy Topchiyska
Telerik
Thank you for the valuable feedback. We will remove these properties from the documentation on the next update.
Regards,
Rosy Topchiyska
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.