为什么我们能够分配以下标记中的类型之一DataTemplate
或属性:-ControlTemplate
Template
ControlTemplate
<Style TargetType="ListBox">
<Setter Property="Template">
<Setter.Value>
<!--
Visual Studio Intellisense shows
both ControlTemplate and
DataTemplate here.
-->
</Setter.Value>
</Setter>
</Style>