PrepAway - Latest Free Exam Questions & Answers

Which XAML fragment should you use?

You are developing a Silverlight 4 application. The application contains a Slider control named Temperature. You need to display the Value property of Temperature in a
TextBlock control. Which XAML fragment should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
<TextBlock Text=”{Binding Path=Temperature.Value}” />

B.
<TextBlock Text=”{Binding Path=Value, Source=Temperature}” />

C.
<TextBlock Text=”{Binding Path=Value, ElementName=Temperature}” />

D.
<TextBlock DataContext=”{StaticResource Temperature}” Text=”{Binding Path=Value}” />


Leave a Reply