Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2805
DataRecordPresenter event setter doesn't trigger event
posted

Hi there,

In  igDP:XamDataGrid.Resources, I added event setter for igDP:DataRecordPresenter, for example,
                   
                        <Style TargetType="{x:Type igDP:DataRecordPresenter}">
                            <EventSetter Event="PreviewMouseRightButtonDown" Handler="myMouseRightButtonDown" />                      
                        </Style>

But why this event doesn't get fired when I right click xamdatagrid? Note, the xamdatagrid has parent-child data.

If I use EventManager.RegisterClassHandler, it works. But since we have different forms with different grids, the registered event will affect all grids. That's why I hope the first method will work.

Thanks for help.