From 1f647af0d6417cf64fc4d7421b7e307b68d3d855 Mon Sep 17 00:00:00 2001 From: Steffen Wilke Date: Mon, 27 Jan 2020 19:07:01 +0100 Subject: [PATCH] Add Link to the project treeview. Issue #15 --- .../Configuration/Wizard/ProjectsTreeView.xaml | 10 ++++++++++ .../Configuration/Wizard/ProjectsTreeView.xaml.cs | 13 +++++++++++++ 2 files changed, 23 insertions(+) diff --git a/src/Soloplan.WhatsON.GUI/Configuration/Wizard/ProjectsTreeView.xaml b/src/Soloplan.WhatsON.GUI/Configuration/Wizard/ProjectsTreeView.xaml index fcac119..6756e38 100644 --- a/src/Soloplan.WhatsON.GUI/Configuration/Wizard/ProjectsTreeView.xaml +++ b/src/Soloplan.WhatsON.GUI/Configuration/Wizard/ProjectsTreeView.xaml @@ -26,6 +26,16 @@ + + + + + + + /// Interaction logic for ProjectsTreeView.xaml. @@ -50,5 +52,16 @@ private void TreeViewItemPreviewKeyUp(object sender, System.Windows.Input.KeyEve } } } + + /// + /// Handles the hyperlink requiest event of elements in the TreeViewItem control. + /// + /// The source of the event. + /// The instance containing the event data. + private void HyperlinkRequestNavigate(object sender, RequestNavigateEventArgs e) + { + Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri)); + e.Handled = true; + } } }