This is a migrated thread and some comments may be shown as answers.

Best approach for Items Scale

1 Answer 43 Views
CoverFlow
This is a migrated thread and some comments may be shown as answers.
Alexandre BARBIER
Top achievements
Rank 1
Alexandre BARBIER asked on 07 May 2010, 11:17 AM
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 !

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 11 May 2010, 11:44 AM
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.
Tags
CoverFlow
Asked by
Alexandre BARBIER
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or