4

I'm trying to set the ItemsPanel of a DataGridCellsPresenter in the Resources of my Window.

<Style TargetType="{x:Type DataGridCellsPresenter}">
    <Setter Property="ItemsPanel">
        <Setter.Value>
            <ItemsPanelTemplate>
                <WPFVarTab:CustomDataGridCellsPanel IsItemsHost="True" />
            </ItemsPanelTemplate>
        </Setter.Value>
    </Setter>
</Style>

But my CustomDataGridCellsPanel is not used. It still uses the DataGridCellsPanel.

What am I doing wrong?

Gilles 'SO- stop being evil'
  • 104,111
  • 38
  • 209
  • 254
Jochen Kühner
  • 1,385
  • 2
  • 18
  • 43

0 Answers0