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

It does not seem to work with Image control

2 Answers 17 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.
Hong
Top achievements
Rank 1
Hong asked on 10 Mar 2015, 01:23 PM
<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 Answers, 1 is accepted

Sort by
0
Vladislav
Telerik team
answered on 12 Mar 2015, 10:12 AM
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.

 
0
Hong
Top achievements
Rank 1
answered on 12 Mar 2015, 01:50 PM
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.
Tags
LayoutTransform
Asked by
Hong
Top achievements
Rank 1
Answers by
Vladislav
Telerik team
Hong
Top achievements
Rank 1
Share this question
or