我正在尝试在我的窗口的资源中设置ItemsPanel
的{{1}}。
DataGridCellsPresenter
但我没有使用<Style TargetType="{x:Type DataGridCellsPresenter}">
<Setter Property="ItemsPanel">
<Setter.Value>
<ItemsPanelTemplate>
<WPFVarTab:CustomDataGridCellsPanel IsItemsHost="True" />
</ItemsPanelTemplate>
</Setter.Value>
</Setter>
</Style>
。它仍然使用CustomDataGridCellsPanel
。
我做错了什么?