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?
A.
<TextBox Template=”{StaticResource TextBoxTemplate}” />
B.
<TextBox Text=”{StaticResource TextBoxTemplate}” />
C.
<TextBox Style=”{StaticResource TextBoxTemplate}” />
D.
<TextBox Resources=”{StaticResource TextBoxTemplate}” />