Best approach for Items Scale

2 posts, 0 answers
  1. Alexandre BARBIER
    Alexandre BARBIER avatar
    14 posts
    Member since:
    May 2009

    Posted 07 May 2010 Link to this post

    I'm using CoverFlow for silverlight 3, last build of 2009...

    I'm trying to scale my items in the CF.
    My items are rendering with a UserControl as template.
    This usercontrol is sized with width and height to 255px
    inside this control there is a textblock displaying binded text.

    Now I would like to scale entire control representing my item so Image will be streched and textblock (and font) too.
    But when I use a scalerendertransform into this UserControl it seems that CF don't matter about this scale and space between items is not correct, ie. the 'layouting' seems to use original size of my items.

    Is there another approach ?

    Thanks for help !
  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 11 May 2010 Link to this post

    Hi Alexandre,

     As the transform is called RenderTransform, it affects only the rendering, but not the layout. To make a transformation that affects the layout as well you might use the LayoutTransformControl in the Telerik.Windows.Controls.Primitives namespace of the Telerik.Windows.Controls assembly. It applies render transform, but affects the layout as well.

    Nevertheless I would recommend you just to make the user control bigger instead of transforming it, because transformations might make the content blurry.

    Hope this information is helpful.

    Kind regards,
    Miroslav Nedyalkov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top