Skip to content

Commit

Permalink
Add link to site and titlebar
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJoeFin committed Apr 11, 2024
1 parent 8252bcc commit 0c2b0a9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:MagickCrop"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="MainWindow"
Title="Magick Crop by TheJoeFin v1.1"
Width="800"
Height="650"
Background="Gray"
Expand Down Expand Up @@ -76,6 +76,7 @@
VerticalAlignment="Center"
FontWeight="Medium"
TextWrapping="Wrap">
<Hyperlink Click="Hyperlink_Click" NavigateUri="https://www.JoeFinApps.com">Hello There!</Hyperlink>
Scroll to Zoom,<LineBreak />
Click and drag to pan and move points.</TextBlock>
<Button
Expand Down
12 changes: 12 additions & 0 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
using ImageMagick;
using Microsoft.Win32;
using System.Diagnostics;
using System.Reflection;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using static System.Net.WebRequestMethods;

namespace MagickCrop;
/// <summary>
Expand Down Expand Up @@ -292,6 +295,15 @@ private void ShapeCanvas_MouseDown(object sender, MouseButtonEventArgs e)
isPanning = true;
}
}

private void Hyperlink_Click(object sender, RoutedEventArgs e)
{
Process.Start(new ProcessStartInfo
{
FileName = "https://www.JoeFinApps.com",
UseShellExecute = true
});
}
}

public enum AspectRatio
Expand Down

0 comments on commit 0c2b0a9

Please sign in to comment.