[GUI] Add a link to project's wiki

Closes #284
This commit is contained in:
Alexey Golub
2020-04-05 00:31:01 +03:00
parent dac7c664d9
commit 5bce4b52ff
4 changed files with 37 additions and 2 deletions

View File

@@ -167,6 +167,10 @@
<materialDesign:PackIcon Margin="1,0,0,-3" Kind="Account" />
</InlineUIContainer>
</TextBlock>
<TextBlock Margin="0,24,0,0" FontSize="14">
<Run Text="For more information, check out the" />
<Hyperlink NavigateUri="https://github.com/Tyrrrz/DiscordChatExporter/wiki" RequestNavigate="Hyperlink_OnRequestNavigate">wiki</Hyperlink><Run Text="." />
</TextBlock>
</StackPanel>
<!-- For bot token -->
@@ -192,6 +196,10 @@
<materialDesign:PackIcon Margin="1,0,0,-1" Kind="Robot" />
</InlineUIContainer>
</TextBlock>
<TextBlock Margin="0,24,0,0" FontSize="14">
<Run Text="For more information, check out the" />
<Hyperlink NavigateUri="https://github.com/Tyrrrz/DiscordChatExporter/wiki" RequestNavigate="Hyperlink_OnRequestNavigate">wiki</Hyperlink><Run Text="." />
</TextBlock>
</StackPanel>
</Grid>

View File

@@ -1,4 +1,7 @@
namespace DiscordChatExporter.Gui.Views
using System.Windows.Navigation;
using DiscordChatExporter.Gui.Internal;
namespace DiscordChatExporter.Gui.Views
{
public partial class RootView
{
@@ -6,5 +9,11 @@
{
InitializeComponent();
}
private void Hyperlink_OnRequestNavigate(object sender, RequestNavigateEventArgs e)
{
ProcessEx.StartShellExecute(e.Uri.AbsoluteUri);
e.Handled = true;
}
}
}