PrepAway - Latest Free Exam Questions & Answers

Which code fragment should you use?

You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
You create a window for the application. You add an image to the window.
You need to ensure that the following requirements are met:
* The image is scaled to completely fit the client area of the window.
* The image aspect ratio is preserved.
* The entire image is displayed within the window.
Which code fragment should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
<Image Source="imageToDisplay.jpg" Stretch="None" />

B.
<Image Source="imageToDisplay.jpg" Stretch="Fill" />

C.
<Image Source="imageToDisplay.jpg" Stretch="Uniform" />

D.
<Image Source="imageToDisplay.jpg" Stretch="UniformToFill" />


Leave a Reply