Stretch Image

2 posts, 0 answers
  1. Deepak
    Deepak avatar
    5 posts
    Member since:
    Jul 2012

    Posted 01 Aug 2013 Link to this post

    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
  2. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 05 Aug 2013 Link to this post

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