You are developing a Silverlight 4 application.
The application contains the following XAML fragment.
<ComboBox Style=”{StaticResource ComboBoxTemplate}” />
You need to add a custom control template to the ComboBoxTemplate style for the ComboBox control. Which XAML fragment should you use?
A.
<Style x:Key=”ComboBoxTemplate” TargetType=”ComboBox”>
<Setter Property=”ControlTemplate”>
<! customized content� >
</Setter>
</Style>
B.
<Style x:Key=”ComboBoxTemplate” TargetType=”ComboBox”>
<Setter>
<Setter.Value>
<ControlTemplate TargetType=”ComboBox”>
<! customized content� >
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
C.
<Style x:Key=”ComboBoxTemplate”>
<Setter Property=”ComboBox”>
<Setter.Value>
<ControlTemplate>
<! customized content� >
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
D.
<Style x:Key=”ComboBoxTemplate” TargetType=”ComboBox”>
<Setter Property=”Template”>
<Setter.Value>
ControlTemplate TargetType=”ComboBox”>
<! customized content� >
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>