This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-14
lines changed
src/GitHub.VisualStudio/UI/Settings Expand file tree Collapse file tree 2 files changed +11
-14
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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
164namespace 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}
You can’t perform that action at this time.
0 commit comments