How to set an event for all cells in WPF Datagrid

Posted by Natxo on Stack Overflow See other posts from Stack Overflow or by Natxo
Published on 2010-03-12T13:13:00Z Indexed on 2010/03/13 18:15 UTC
Read the original article Hit count: 533

Filed under:
|
|
|

I need OnDragEnter event for every cell on my WPF Datagrid. I tried this :

<ControlTemplate TargetType="{x:Type my:DataGridCell}" x:Key="RowTemplate">
    <ContentPresenter DragEnter="ContentPresenter_DragEnter" >
    </ContentPresenter>
</ControlTemplate>

But doesn't seem to work. Any ideas people?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about wpfdatagrid