summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Views
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF/Views')
-rw-r--r--win/CS/HandBrakeWPF/Views/MainView.xaml7
-rw-r--r--win/CS/HandBrakeWPF/Views/MainView.xaml.cs6
2 files changed, 7 insertions, 6 deletions
diff --git a/win/CS/HandBrakeWPF/Views/MainView.xaml b/win/CS/HandBrakeWPF/Views/MainView.xaml
index fd4f0d356..4b68d6b3e 100644
--- a/win/CS/HandBrakeWPF/Views/MainView.xaml
+++ b/win/CS/HandBrakeWPF/Views/MainView.xaml
@@ -8,6 +8,7 @@
FontSize="11" Background="#FFF0F0F0"
Micro:Message.Attach="[Event Loaded] = [Action Load]"
UseLayoutRounding="True" SizeToContent="Height"
+ WindowStartupLocation="CenterScreen"
SnapsToDevicePixels="True"
AllowDrop="True">
@@ -17,6 +18,12 @@
<Micro:Parameter Value="$eventArgs"></Micro:Parameter>
</Micro:ActionMessage>
</i:EventTrigger>
+
+ <i:EventTrigger EventName="Closing">
+ <Micro:ActionMessage MethodName="HandleWindowClosing">
+ <Micro:Parameter Value="$eventArgs"></Micro:Parameter>
+ </Micro:ActionMessage>
+ </i:EventTrigger>
</i:Interaction.Triggers>
<Window.Resources>
diff --git a/win/CS/HandBrakeWPF/Views/MainView.xaml.cs b/win/CS/HandBrakeWPF/Views/MainView.xaml.cs
index 163a3d807..165e74923 100644
--- a/win/CS/HandBrakeWPF/Views/MainView.xaml.cs
+++ b/win/CS/HandBrakeWPF/Views/MainView.xaml.cs
@@ -9,7 +9,6 @@
namespace HandBrakeWPF.Views
{
- using System.Diagnostics;
using System.Windows;
/// <summary>
@@ -24,10 +23,5 @@ namespace HandBrakeWPF.Views
{
InitializeComponent();
}
-
- private void Hyperlink_RequestNavigate(object sender, System.Windows.Navigation.RequestNavigateEventArgs e)
- {
- Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
- }
}
}