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