itemheight and itemwidht?

7 posts, 0 answers
  1. Lorenzo
    Lorenzo avatar
    3 posts
    Member since:
    Jan 2014

    Posted 26 Jan 2014 Link to this post

    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!
  2. Lorenzo
    Lorenzo avatar
    3 posts
    Member since:
    Jan 2014

    Posted 26 Jan 2014 Link to this post

    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. 
  3. DevCraft banner
  4. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 27 Jan 2014 Link to this post

    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:

    <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.
  5. Lorenzo
    Lorenzo avatar
    3 posts
    Member since:
    Jan 2014

    Posted 27 Jan 2014 in reply to Kiril Stanoev Link to this post

    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. 
  6. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 28 Jan 2014 Link to this post

    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
    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.
  7. Thomas
    Thomas avatar
    6 posts
    Member since:
    May 2011

    Posted 01 Feb 2015 Link to this post

    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.
  8. Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    551 posts

    Posted 04 Feb 2015 Link to this post

    Hello Thomas,

    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.

     
Back to Top
DevCraft banner