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?

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?

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 0

Your email address will not be published. Required fields are marked *