Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 1aa3dce

Browse files
committed
Add link to sample usage data
1 parent 67f4178 commit 1aa3dce

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

src/GitHub.VisualStudio/UI/Settings/OptionsControl.xaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@
7777
<CheckBox x:Name="chkMetrics" VerticalAlignment="Center" />
7878
<Label Content="{x:Static prop:Resources.Options_MetricsLabel}" />
7979
</WrapPanel>
80+
<TextBlock>
81+
<Hyperlink ToolTip="https://visualstudio.github.com/samples.html" NavigateUri="https://visualstudio.github.com/samples.html" RequestNavigate="Hyperlink_RequestNavigate"><TextBlock Text="{x:Static prop:Resources.learnMoreLink}"/></Hyperlink>
82+
</TextBlock>
8083
</DockPanel>
8184
</GroupBox>
8285
</UserControl>
Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
6-
using System.Windows;
7-
using System.Windows.Controls;
8-
using System.Windows.Data;
9-
using System.Windows.Documents;
10-
using System.Windows.Input;
11-
using System.Windows.Media;
12-
using System.Windows.Media.Imaging;
13-
using System.Windows.Navigation;
14-
using System.Windows.Shapes;
1+
using System.Windows.Controls;
2+
using GitHub.Services;
153

164
namespace GitHub.VisualStudio.UI
175
{
@@ -30,5 +18,11 @@ public bool CollectMetrics
3018
get { return chkMetrics.IsChecked ?? false; }
3119
set { chkMetrics.IsChecked = value; }
3220
}
21+
22+
private void Hyperlink_RequestNavigate(object sender, System.Windows.Navigation.RequestNavigateEventArgs e)
23+
{
24+
var browser = Services.DefaultExportProvider.GetExportedValue<IVisualStudioBrowser>();
25+
browser?.OpenUrl(e.Uri);
26+
}
3327
}
3428
}

0 commit comments

Comments
 (0)