PrepAway - Latest Free Exam Questions & Answers

Which XAML fragment should you use?

You are developing a Silverlight 4 application. The following ControlTemplate has been defined as a Resource. <ControlTemplate TargetType=”TextBox” x:Key=”TextBoxTemplate”>
<! custom code… >
</ControlTemplate>
You need to set a TextBox control to use the resource. Which XAML fragment should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
<TextBox Template=”{StaticResource TextBoxTemplate}” />

B.
<TextBox Text=”{StaticResource TextBoxTemplate}” />

C.
<TextBox Style=”{StaticResource TextBoxTemplate}” />

D.
<TextBox Resources=”{StaticResource TextBoxTemplate}” />


Leave a Reply