내 프로젝트에 datagrid
테이블을 사용합니다. datagrid
의 열 중 하나는 내 프로젝트에 따라 문서의 경로입니다. 나는 그렇게 싶습니다wpf datagrid on click 이벤트
,
- 프로그램의 경로를 얻을 것이다,
- 프로그램은 다른 탭을 엽니 다.
열에 대한 onclick
이벤트가 표시되지 않습니다. 어떻게해야합니까? 또한 동일한 wpf 창에서 tabitem을 어떻게 전환 할 수 있습니까?
<toolkit:DataGridHyperlinkColumn Header="Path" Binding="{Binding path}" IsReadOnly="True" TargetName="{Binding Path=path}">
</toolkit:DataGridHyperlinkColumn >
OnClick 이벤트가 없지만 MouseDown, MouseUp, MouseLeftButtonDown, MouseLeftButtonUp, MouseRightButtonDown, MouseRightButtonUp 및 위 이벤트의 미리보기 버전이 있습니다. MouseUp 이벤트 중 하나를 사용하여 OnClick 이벤트를 대체하는 것이 좋습니다. –