Using WPF DataGridHyperLinkColumn Items to open Windows Explorer and open files
2012-07-26 20:01
1596 查看
<DataGridHyperlinkColumn Binding="{Binding Link}"> <DataGridHyperlinkColumn.ElementStyle> <Style> <EventSetter Event="Hyperlink.Click" Handler="DG_Hyperlink_Click"/> </Style> </DataGridHyperlinkColumn.ElementStyle> </DataGridHyperlinkColumn>
or
<DataGrid.Resources> <Style TargetType="Hyperlink"> <EventSetter Event="Click" Handler="DG_Hyperlink_Click"/> </Style> </DataGrid.Resources>
link http://stackoverflow.com/questions/5764951/using-wpf-datagridhyperlinkcolumn-items-to-open-windows-explorer-and-open-files
相关文章推荐
- How can I get a FlowDocument Hyperlink to launch browser and go to URL in a WPF app?
- 【转】Drag and Drop files from Windows Explorer toWindows Form
- Preview Word files (docx) in HTML using ASP.NET, OpenXML and LINQ to XML
- Preview Word files (docx) in HTML using ASP.NET, OpenXML and LINQ to XML
- WPF DataGridHyperlinkColumn
- Tailor Your DataGrid Apps Using Table Style and Custom Column Style Objects
- C# Adding Hyperlink to Windows Form z
- How to load and generate a custom hierarchy in SAP Business Warehouse (SAP BW) without using flat files
- Exporting DataGrid to Excel, Word and Text Files
- WPF DataGrid Custommization using Style and Template
- How to easily open files and URLs from the command line
- How to Create WPF Docking Windows Using Code Only
- Error Code: 1175.You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column.
- Using jQuery and SPServices to Display List Items
- How to Analyze Problems Related to Internal Errors (ORA-600) and Core Dumps (ORA-7445)using Metalink
- 使用SharePoint Web Serivce(3)--Add a new Item with HyperLink and User Type Column
- Using a Microsoft Account to Logon and Resulting Internet Communication in Windows 8
- Using tar and ssh to efficiently copy files preserving permissions
- VBScript, WMI, and ADSI Unleashed: Using VBScript, WMI, and ADSI to Automate Windows Administration
- Mysql Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column