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

Get RenderSize after scaling

3 Answers 137 Views
LayoutTransform
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Victor
Top achievements
Rank 1
Victor asked on 21 Feb 2013, 03:55 AM
Why is the RenderSize width/height returns 0 after scaling? I thought LayoutTransform is suppose to affect the layout, thus change a control's ActualWidth and ActualHeight?

So how do I get the control size after scaling?

3 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 21 Feb 2013, 08:33 AM
Hello Victor,

The layout transform sets its own width and height after rendering its content with its layout transform. The size of the content element will not change, because a RenderTransform has no effect on its size properties. The layout transform control corresponds to the size of the bounding box of the its content.
Please use the Width and Height properties of RadLayoutTransformControl.

Greetings,
Victor
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Victor
Top achievements
Rank 1
answered on 21 Feb 2013, 12:05 PM
Hi,

Can you explain more how can I use the Width and Height properties of RadLayoutTransformControl to get the image control rendersize via code?

this.radLayoutTransformControl.LayoutTransform.Height / Width?

0
Victor
Telerik team
answered on 22 Feb 2013, 11:55 AM
Hello Victor,

You need the Width and Height properties of your radLayoutTransformControl instance. The transformation itself does not have Width and Height properties. What you're looking for is radLayoutTransformControl.Width / Height.

Greetings,
Victor
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
LayoutTransform
Asked by
Victor
Top achievements
Rank 1
Answers by
Victor
Telerik team
Victor
Top achievements
Rank 1
Share this question
or