DataGridColumnHeader MouseUp event only triggered for right clicking

Jul 7, 2010 at 2:12 AM
Hi, I was trying to capture a mouse click event when clicking column header. I set a handler in ColumnHeader style: <Style x:Uid="gridColumnHeaderStyle" x:Key="gridColumnHeaderStyle" TargetType="{x:Type dg:DataGridColumnHeader}" > <EventSetter x:Uid="ESetter_1" Event="MouseUp" Handler="DataGridTemplateColumn_MouseUp" /> ... But found it only responsed to right click. I havenot specified any left mouse button handlers. Is it a bug or any other reason for this case? Thanks a lot