Get RenderSize after scaling

4 posts, 0 answers
  1. Victor
    Victor avatar
    4 posts
    Member since:
    Jan 2013

    Posted 20 Feb 2013 Link to this post

    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?
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 21 Feb 2013 Link to this post

    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.
  3. DevCraft banner
  4. Victor
    Victor avatar
    4 posts
    Member since:
    Jan 2013

    Posted 21 Feb 2013 Link to this post

    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?

  5. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 22 Feb 2013 Link to this post

    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.
Back to Top
DevCraft banner