1 <DataGridHyperlinkColumn Binding="{Binding Link}">
2     <DataGridHyperlinkColumn.ElementStyle>
3         <Style>
4             <EventSetter Event="Hyperlink.Click" Handler="DG_Hyperlink_Click"/>
5         </Style>
6     </DataGridHyperlinkColumn.ElementStyle>
7 </DataGridHyperlinkColumn>

or

1 <DataGrid.Resources>
2     <Style TargetType="Hyperlink">
3         <EventSetter Event="Click" Handler="DG_Hyperlink_Click"/>
4     </Style>
5 </DataGrid.Resources>

link http://stackoverflow.com/questions/5764951/using-wpf-datagridhyperlinkcolumn-items-to-open-windows-explorer-and-open-files

相关文章:

  • 2021-08-26
  • 2021-05-27
  • 2021-07-10
  • 2021-08-23
猜你喜欢
  • 2021-06-21
  • 2021-08-30
  • 2022-12-23
  • 2021-10-11
  • 2021-07-04
  • 2021-09-27
相关资源
相似解决方案