This is a migrated thread and some comments may be shown as answers.
ListView Scale
3 Answers 16 Views
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 28 Nov 2013, 10:24 PM
Hello Support Team!
Please let me know how can I change the scale transform of radListView ?
It is possible with hierarchy but how does this happen via code?
Thanks.

3 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 03 Dec 2013, 01:26 PM
Hi John,

Thank you for contacting us.

You can set the scale transform in code very easy like this:
radListView1.ListViewElement.ScaleTransform = new SizeF(2.00f, 2.00f);

However I am not sure what exactly you are trying to achieve with this. If this is not what you are looking for I want to kindly ask you to send us more details on what exactly you are trying to accomplish. Hopefully this will help us to provide you with a proper solution.

I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
John
Top achievements
Rank 1
answered on 03 Dec 2013, 08:08 PM
It works, thank you!
I tried below code and doesn't work:

radListView1.ListViewElement.ScaleTransform = new Size(1, .5);

But your code works successfully,

Would you please let me know what is different between Size and SizeF ?
Also what is those " f " after 2.00 ?
Thanks.
0
Dimitar
Telerik team
answered on 06 Dec 2013, 11:55 AM
Hi John,

Thank you for writing back.

SizeF stores an ordered pair of floating-point numbers, typically the width and height of a rectangle. Size is pretty much the same but it is using integer numbers and this is not useful for scaling because you cannot set scaling of 1.5 with integers. 

The 'f' suffix is used for float type, which is used for the SizeF properties in this case. More information about this type is available in the following MSDN article: float (C# Reference).

I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Asked by
John
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
John
Top achievements
Rank 1
Share this question
or