2015-10-28 147 views

回答

1

您可以通過DataGridCell的StyleSet中的EventSetter來完成。 例如:

<DataGrid> 
    <DataGrid.Resources> 
     <Style TargetType="{x:Type DataGridCell}"> 
      <EventSetter Event="MouseLeftButtonUp" Handler="MyEventHandler" /> 
     </Style> 
    </DataGrid.Resources> 
</DataGrid> 
相關問題