It does not seem to work with Image control

3 posts, 0 answers
  1. Hong
    Hong avatar
    15 posts
    Member since:
    Dec 2012

    Posted 10 Mar 2015 Link to this post

    <telerikPrimitives:RadLayoutTransformControl>
        <telerikPrimitives:RadLayoutTransformControl.LayoutTransform>
            <RotateTransform Angle="45" />
        </telerikPrimitives:RadLayoutTransformControl.LayoutTransform>
        <Image x:Name="imagePrimaryCamera" Stretch="Uniform">
    </telerikPrimitives:RadLayoutTransformControl>
    The above code does not show the image.  The source of image is specified in C# code.  It works if the image is taken out of RadLayoutTransformControl.
  2. Vladislav
    Admin
    Vladislav avatar
    276 posts

    Posted 12 Mar 2015 Link to this post

    Hello Hong,

    This is a known limitation of the RadLayoutTransformControl. In order to workaround it, you should set size (Width/Height) of the image inside the RadLayoutTransformControl.

    Can you please try it and let us know if this approach is applicable for your project(s)?

    Regards,
    Vladislav
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
  4. Hong
    Hong avatar
    15 posts
    Member since:
    Dec 2012

    Posted 12 Mar 2015 in reply to Vladislav Link to this post

    Thanks for the clarification and tip, Vladislav.
    I was trying to use RadLayoutTransformControl because I did not want to deal with the image size.  If I have to specify the dimension, I will just use RenderTransform of the image to simplify the code because RadLayoutTransformControl does not offer any benefit anymore in this case.
Back to Top