locked
is there is any controle in metro app resize with the image height and width when adding to it..?

    Question

  • hi

    is there is any controle in metro app resize with the image height and width when adding to it..?

    Thursday, September 20, 2012 12:23 PM

Answers

  • Hi,

    As far as I know, the Image control will keep the image size.

    We can try to use a rectangle and with the image Brush, we can control the rectangle size to control the image size.

            <Rectangle HorizontalAlignment="Left" Height="154" Margin="587,591,0,0" Stroke="Black" VerticalAlignment="Top" Width="439">
                <Rectangle.Fill>
                    <ImageBrush ImageSource="case.png"/>
                </Rectangle.Fill>
            </Rectangle>

    Best regards,
    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    • Marked as answer by Jesse Jiang Monday, September 24, 2012 3:02 AM
    Friday, September 21, 2012 5:15 AM

All replies

  • Hi,

    As far as I know, the Image control will keep the image size.

    We can try to use a rectangle and with the image Brush, we can control the rectangle size to control the image size.

            <Rectangle HorizontalAlignment="Left" Height="154" Margin="587,591,0,0" Stroke="Black" VerticalAlignment="Top" Width="439">
                <Rectangle.Fill>
                    <ImageBrush ImageSource="case.png"/>
                </Rectangle.Fill>
            </Rectangle>

    Best regards,
    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    • Marked as answer by Jesse Jiang Monday, September 24, 2012 3:02 AM
    Friday, September 21, 2012 5:15 AM
  • hi jesse,

    thank you for your reply.

    Regards,

    Sarath s

    Friday, September 21, 2012 11:24 AM