Which of the following XAML snippets shows the Image on Button control?

Options
- < Button> < StackPanel Orientation="Horizontal"> < Image Source="speaker.png" Stretch="Uniform"/> < TextBlock Text="Play Sound" /> < /StackPanel> < /Button>
- < Button> < Image="speaker.png" Stretch="Uniform"/> < TextBlock Text="Play Sound" /> < /Button>
- < Button> < StackPanel Orientation="Horizontal"> < ImageFile="speaker.png" Stretch="Uniform"/> < TextBlock Text="Play Sound" /> < /StackPanel> < /Button>
- < Button> < StackPanel Orientation="Horizontal"> < ImageSource="speaker" Stretch="Uniform"/> < TextBlock Text="Play Sound" /> < /StackPanel> < /Button>


CORRECT ANSWER : < Button> < StackPanel Orientation="Horizontal"> < Image Source="speaker.png" Stretch="Uniform"/> < TextBlock Text="Play Sound" /> < /StackPanel> < /Button>

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement