Skip to content

Commit 0c2b0a9

Browse files
committed
Add link to site and titlebar
1 parent 8252bcc commit 0c2b0a9

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

MainWindow.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
66
xmlns:local="clr-namespace:MagickCrop"
77
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
8-
Title="MainWindow"
8+
Title="Magick Crop by TheJoeFin v1.1"
99
Width="800"
1010
Height="650"
1111
Background="Gray"
@@ -76,6 +76,7 @@
7676
VerticalAlignment="Center"
7777
FontWeight="Medium"
7878
TextWrapping="Wrap">
79+
<Hyperlink Click="Hyperlink_Click" NavigateUri="https://www.JoeFinApps.com">Hello There!</Hyperlink>
7980
Scroll to Zoom,<LineBreak />
8081
Click and drag to pan and move points.</TextBlock>
8182
<Button

MainWindow.xaml.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
using ImageMagick;
22
using Microsoft.Win32;
3+
using System.Diagnostics;
34
using System.Reflection;
45
using System.Windows;
56
using System.Windows.Controls;
7+
using System.Windows.Documents;
68
using System.Windows.Input;
79
using System.Windows.Media;
810
using System.Windows.Media.Imaging;
911
using System.Windows.Shapes;
12+
using static System.Net.WebRequestMethods;
1013

1114
namespace MagickCrop;
1215
/// <summary>
@@ -292,6 +295,15 @@ private void ShapeCanvas_MouseDown(object sender, MouseButtonEventArgs e)
292295
isPanning = true;
293296
}
294297
}
298+
299+
private void Hyperlink_Click(object sender, RoutedEventArgs e)
300+
{
301+
Process.Start(new ProcessStartInfo
302+
{
303+
FileName = "https://www.JoeFinApps.com",
304+
UseShellExecute = true
305+
});
306+
}
295307
}
296308

297309
public enum AspectRatio

0 commit comments

Comments
 (0)