通过Style设置DataGridCellsPresenter的ItemsPanel不起作用

时间:2011-06-21 09:19:50

标签: wpf datagrid styles itemspanel

我正在尝试在我的窗口的资源中设置ItemsPanel的{​​{1}}。

DataGridCellsPresenter

但我没有使用<Style TargetType="{x:Type DataGridCellsPresenter}"> <Setter Property="ItemsPanel"> <Setter.Value> <ItemsPanelTemplate> <WPFVarTab:CustomDataGridCellsPanel IsItemsHost="True" /> </ItemsPanelTemplate> </Setter.Value> </Setter> </Style> 。它仍然使用CustomDataGridCellsPanel

我做错了什么?

0 个答案:

没有答案