Skip to content

Commit 4ccdce4

Browse files
committed
add helper link
1 parent 928bea3 commit 4ccdce4

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

src/WPF/GeneralUpdate.Packet/Views/HelperView.xaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@
1010
<Grid.RowDefinitions>
1111
<RowDefinition></RowDefinition>
1212
<RowDefinition></RowDefinition>
13+
<RowDefinition></RowDefinition>
1314
</Grid.RowDefinitions>
14-
<TextBlock Text="* All functional buttons will have tooltips that hover over them with the mouse." TextWrapping="WrapWithOverflow" FontSize="24" />
15-
<TextBlock Grid.Row="1" Text="*If you have any usage problems, please submit the issue on github and the author will reply as soon as possible" TextWrapping="WrapWithOverflow" FontSize="24" />
15+
<Label Name="LblUrl" FontSize="24">
16+
<Hyperlink NavigateUri="https://gitee.com/GeneralLibrary/GeneralUpdate/tree/master/doc" RequestNavigate="LblUrl_RequestNavigate">Help document link address,Click here to jump to the web page.</Hyperlink>
17+
</Label>
18+
<TextBlock Grid.Row="1" Text="* All functional buttons will have tooltips that hover over them with the mouse." TextWrapping="WrapWithOverflow" FontSize="24" />
19+
<TextBlock Grid.Row="2" Text="*If you have any usage problems, please submit the issue on github and the author will reply as soon as possible" TextWrapping="WrapWithOverflow" FontSize="24" />
1620
</Grid>
1721
</UserControl>

src/WPF/GeneralUpdate.Packet/Views/HelperView.xaml.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using GeneralUpdate.Packet.MVVM;
2+
using System.Diagnostics;
23
using System.Windows.Controls;
34

45
namespace GeneralUpdate.Packet.Views
@@ -12,5 +13,16 @@ public HelperView()
1213
{
1314
InitializeComponent();
1415
}
16+
17+
private void LblUrl_RequestNavigate(object sender, System.Windows.Navigation.RequestNavigateEventArgs e)
18+
{
19+
var psi = new ProcessStartInfo
20+
{
21+
FileName = e.Uri.AbsoluteUri,
22+
UseShellExecute = true
23+
};
24+
Process.Start(psi);
25+
e.Handled = true;
26+
}
1527
}
1628
}

0 commit comments

Comments
 (0)