mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 04:53:44 +02:00
hyperlinks in the about page are clickable
This commit is contained in:
parent
0142c0d339
commit
d3bd10952e
2 changed files with 17 additions and 17 deletions
|
@ -8,13 +8,17 @@
|
||||||
Title="AboutView" Height="460" Width="300" Icon="ZeroTierIcon.ico">
|
Title="AboutView" Height="460" Width="300" Icon="ZeroTierIcon.ico">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Image x:Name="image" HorizontalAlignment="Center" Height="100" Margin="0,10,0,0" VerticalAlignment="Top" Width="100" Source="ZeroTierIcon.ico"/>
|
<Image x:Name="image" HorizontalAlignment="Center" Height="100" Margin="0,10,0,0" VerticalAlignment="Top" Width="100" Source="ZeroTierIcon.ico"/>
|
||||||
<RichTextBox x:Name="richTextBox" HorizontalAlignment="Left" Height="307" Margin="10,115,0,0" VerticalAlignment="Top" Width="275">
|
<RichTextBox x:Name="richTextBox" HorizontalAlignment="Left" Height="307" Margin="10,115,0,0" VerticalAlignment="Top" Width="275" IsReadOnly="True" IsDocumentEnabled="True">
|
||||||
|
<RichTextBox.Resources>
|
||||||
|
<Style TargetType="Hyperlink">
|
||||||
|
<Setter Property="Cursor" Value="Hand" />
|
||||||
|
</Style>
|
||||||
|
</RichTextBox.Resources>
|
||||||
<FlowDocument>
|
<FlowDocument>
|
||||||
<Paragraph>
|
<Paragraph>
|
||||||
<Span FontWeight="Bold" FontSize="18" FontFamily="HelveticaNeue">
|
<Span FontWeight="Bold" FontSize="18" FontFamily="HelveticaNeue">
|
||||||
<Run Text="Getting Started"/>
|
<Run Text="Getting Started"/>
|
||||||
</Span>
|
</Span>
|
||||||
<Run Text=" "/>
|
|
||||||
<Span FontWeight="Bold" FontSize="12" FontFamily="HelveticaNeue">
|
<Span FontWeight="Bold" FontSize="12" FontFamily="HelveticaNeue">
|
||||||
<LineBreak/>
|
<LineBreak/>
|
||||||
</Span>
|
</Span>
|
||||||
|
@ -26,29 +30,23 @@
|
||||||
<Span FontSize="12" FontFamily="HelveticaNeue">
|
<Span FontSize="12" FontFamily="HelveticaNeue">
|
||||||
<Run Text="Getting started is simple. Simply click "/>
|
<Run Text="Getting started is simple. Simply click "/>
|
||||||
</Span>
|
</Span>
|
||||||
<Run Text=" "/>
|
|
||||||
<Span FontSize="12" FontFamily="Menlo-Regular">
|
<Span FontSize="12" FontFamily="Menlo-Regular">
|
||||||
<Run Text="Join Network"/>
|
<Run Text="Join Network"/>
|
||||||
</Span>
|
</Span>
|
||||||
<Run Text=" "/>
|
|
||||||
<Span FontSize="12" FontFamily="HelveticaNeue">
|
<Span FontSize="12" FontFamily="HelveticaNeue">
|
||||||
<Run Text=" from the ZeroTier status bar menu. To join the public network "Earth", enter "/>
|
<Run Text=" from the ZeroTier status bar menu. To join the public network "Earth", enter "/>
|
||||||
</Span>
|
</Span>
|
||||||
<Run Text=" "/>
|
|
||||||
<Span FontSize="12" FontFamily="Menlo-Regular">
|
<Span FontSize="12" FontFamily="Menlo-Regular">
|
||||||
<Run Text="8056c2e21c000001"/>
|
<Run Text="8056c2e21c000001"/>
|
||||||
</Span>
|
</Span>
|
||||||
<Run Text=" "/>
|
|
||||||
<Span FontSize="12" FontFamily="HelveticaNeue">
|
<Span FontSize="12" FontFamily="HelveticaNeue">
|
||||||
<Run Text=" and click the Join button. Once connected, you'll be able to navigate to "/>
|
<Run Text=" and click the Join button. Once connected, you'll be able to navigate to "/>
|
||||||
</Span>
|
</Span>
|
||||||
<Run Text=" "/>
|
<Hyperlink NavigateUri="http://earth.zerotier.net/" RequestNavigate="Hyperlink_MouseLeftButtonDown">
|
||||||
<Hyperlink NavigateUri="http://earth.zerotier.net/">
|
|
||||||
<Span Foreground="#FF0000E9" FontSize="12" FontFamily="HelveticaNeue">
|
<Span Foreground="#FF0000E9" FontSize="12" FontFamily="HelveticaNeue">
|
||||||
<Run Text="earth.zerotier.net"/>
|
<Run Text="earth.zerotier.net"/>
|
||||||
</Span>
|
</Span>
|
||||||
</Hyperlink>
|
</Hyperlink>
|
||||||
<Run Text=" "/>
|
|
||||||
<Span FontSize="12" FontFamily="HelveticaNeue">
|
<Span FontSize="12" FontFamily="HelveticaNeue">
|
||||||
<Run Text="."/>
|
<Run Text="."/>
|
||||||
</Span>
|
</Span>
|
||||||
|
@ -61,7 +59,6 @@
|
||||||
<Span FontWeight="Bold" FontSize="18" FontFamily="HelveticaNeue">
|
<Span FontWeight="Bold" FontSize="18" FontFamily="HelveticaNeue">
|
||||||
<Run Text="Create a Network"/>
|
<Run Text="Create a Network"/>
|
||||||
</Span>
|
</Span>
|
||||||
<Run Text=" "/>
|
|
||||||
<Span FontWeight="Bold" FontSize="12" FontFamily="HelveticaNeue">
|
<Span FontWeight="Bold" FontSize="12" FontFamily="HelveticaNeue">
|
||||||
<LineBreak/>
|
<LineBreak/>
|
||||||
</Span>
|
</Span>
|
||||||
|
@ -73,17 +70,14 @@
|
||||||
<Span FontSize="12" FontFamily="HelveticaNeue">
|
<Span FontSize="12" FontFamily="HelveticaNeue">
|
||||||
<Run Text="Visit "/>
|
<Run Text="Visit "/>
|
||||||
</Span>
|
</Span>
|
||||||
<Run Text=" "/>
|
<Hyperlink NavigateUri="http://my.zerotier.com/" RequestNavigate="Hyperlink_MouseLeftButtonDown">
|
||||||
<Hyperlink NavigateUri="http://my.zerotier.com/">
|
|
||||||
<Span Foreground="#FF0000E9" FontSize="12" FontFamily="HelveticaNeue">
|
<Span Foreground="#FF0000E9" FontSize="12" FontFamily="HelveticaNeue">
|
||||||
<Run Text="my.zerotier.com"/>
|
<Run Text="my.zerotier.com"/>
|
||||||
</Span>
|
</Span>
|
||||||
</Hyperlink>
|
</Hyperlink>
|
||||||
<Run Text=" "/>
|
|
||||||
<Span FontSize="12" FontFamily="HelveticaNeue">
|
<Span FontSize="12" FontFamily="HelveticaNeue">
|
||||||
<Run Text=" to create and manage your own virtual networks."/>
|
<Run Text=" to create and manage your own virtual networks."/>
|
||||||
</Span>
|
</Span>
|
||||||
<Run Text=" "/>
|
|
||||||
<Span FontSize="12" FontFamily="HelveticaNeue">
|
<Span FontSize="12" FontFamily="HelveticaNeue">
|
||||||
<LineBreak/>
|
<LineBreak/>
|
||||||
<Run/>
|
<Run/>
|
||||||
|
@ -93,13 +87,11 @@
|
||||||
<Span FontSize="12" FontFamily="HelveticaNeue">
|
<Span FontSize="12" FontFamily="HelveticaNeue">
|
||||||
<Run Text="For more information, visit "/>
|
<Run Text="For more information, visit "/>
|
||||||
</Span>
|
</Span>
|
||||||
<Run Text=" "/>
|
<Hyperlink NavigateUri="http://www.zerotier.com/" RequestNavigate="Hyperlink_MouseLeftButtonDown">
|
||||||
<Hyperlink NavigateUri="http://www.zerotier.com/">
|
|
||||||
<Span Foreground="#FF0000E9" FontSize="12" FontFamily="HelveticaNeue">
|
<Span Foreground="#FF0000E9" FontSize="12" FontFamily="HelveticaNeue">
|
||||||
<Run Text="zerotier.com"/>
|
<Run Text="zerotier.com"/>
|
||||||
</Span>
|
</Span>
|
||||||
</Hyperlink>
|
</Hyperlink>
|
||||||
<Run Text=" "/>
|
|
||||||
<Span FontSize="12" FontFamily="HelveticaNeue">
|
<Span FontSize="12" FontFamily="HelveticaNeue">
|
||||||
<Run Text="."/>
|
<Run Text="."/>
|
||||||
</Span>
|
</Span>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
@ -10,6 +11,7 @@ using System.Windows.Documents;
|
||||||
using System.Windows.Input;
|
using System.Windows.Input;
|
||||||
using System.Windows.Media;
|
using System.Windows.Media;
|
||||||
using System.Windows.Media.Imaging;
|
using System.Windows.Media.Imaging;
|
||||||
|
using System.Windows.Navigation;
|
||||||
using System.Windows.Shapes;
|
using System.Windows.Shapes;
|
||||||
|
|
||||||
namespace WinUI
|
namespace WinUI
|
||||||
|
@ -23,5 +25,11 @@ namespace WinUI
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void Hyperlink_MouseLeftButtonDown(object sender, RequestNavigateEventArgs e)
|
||||||
|
{
|
||||||
|
var hyperlink = (Hyperlink)sender;
|
||||||
|
Process.Start(hyperlink.NavigateUri.ToString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue