PrepAway - Latest Free Exam Questions & Answers

Which code fragment should you use?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application that displays a high-resolution graphic image named Image1.jpg.
You need to limit the width of the image to 200 pixels. You also need to preserve the aspect ratio of the image.
Which code fragment should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
<Image Width=”200″ Source=”Image1.jpg”/><Image Width=”200″ Height=”200″ Source=”Image1.jpg”/><Image Width=”200″><Image.Source>

B.
<BitmapImage DecodePixelWidth=”200″ DecodePixelHeight=”200″ UriSource=”Image1.jpg” /></Image.Source>

C.
</Image><Image Width=”200″><Image.Source>

D.
<BitmapImage DecodePixelWidth=”200″ UriSource=”Image1.jpg” /></Image.Source> </Image>


Leave a Reply