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

Stretch Image

1 Answer 66 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Deepak
Top achievements
Rank 2
Deepak asked on 01 Aug 2013, 01:34 PM

Hi,
I just tried to bind a BitMapImage as the source of an Image control in my windows phone 8 application. And apply the Stretch property to Uniform. But the image is still showing stretched. How can I fit the image in it's original dimension.

Here is my code:

<Image x:Name="ConversationImage" Width="200" Height="200" Visibility="{Binding ImageVisibility}" Source="{Binding ThumbImage}" Stretch="Uniform"  VerticalAlignment="Center" HorizontalAlignment="Center"/>
Thanks,
Deepak

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 05 Aug 2013, 07:24 AM
Hello Deepak,

Can you try setting the Stretch property to UniformToFill instead of Uniform

Regards,
Deyan
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
General Discussions
Asked by
Deepak
Top achievements
Rank 2
Answers by
Deyan
Telerik team
Share this question
or