diff --git a/MPF/External/WPFCustomMessageBox/CustomMessageBoxWindow.xaml b/MPF/External/WPFCustomMessageBox/CustomMessageBoxWindow.xaml
index 25d2203b..0d251be8 100644
--- a/MPF/External/WPFCustomMessageBox/CustomMessageBoxWindow.xaml
+++ b/MPF/External/WPFCustomMessageBox/CustomMessageBoxWindow.xaml
@@ -11,7 +11,7 @@
BorderBrush="DarkGray" BorderThickness="2">
-
+
@@ -24,15 +24,15 @@
-
+
-
+
-
+
diff --git a/MPF/External/WPFCustomMessageBox/CustomMessageBoxWindow.xaml.cs b/MPF/External/WPFCustomMessageBox/CustomMessageBoxWindow.xaml.cs
index a0eafc35..be55eae3 100644
--- a/MPF/External/WPFCustomMessageBox/CustomMessageBoxWindow.xaml.cs
+++ b/MPF/External/WPFCustomMessageBox/CustomMessageBoxWindow.xaml.cs
@@ -1,6 +1,7 @@
using System;
using System.Drawing;
using System.Windows;
+using System.Windows.Input;
namespace WPFCustomMessageBox
{
@@ -209,5 +210,14 @@ namespace WPFCustomMessageBox
Result = MessageBoxResult.No;
Close();
}
+
+ ///
+ /// Handler for Title MouseDown event
+ ///
+ private void TitleMouseDown(object sender, MouseButtonEventArgs e)
+ {
+ if (e.ChangedButton == MouseButton.Left)
+ this.DragMove();
+ }
}
}
diff --git a/MPF/Windows/DiscInformationWindow.xaml b/MPF/Windows/DiscInformationWindow.xaml
index aad785a1..b88f05ad 100644
--- a/MPF/Windows/DiscInformationWindow.xaml
+++ b/MPF/Windows/DiscInformationWindow.xaml
@@ -11,23 +11,23 @@
BorderBrush="DarkGray" BorderThickness="2">
-
+
-
+
-
+
-
+
-
diff --git a/MPF/Windows/DiscInformationWindow.xaml.cs b/MPF/Windows/DiscInformationWindow.xaml.cs
index a7598893..ce65060f 100644
--- a/MPF/Windows/DiscInformationWindow.xaml.cs
+++ b/MPF/Windows/DiscInformationWindow.xaml.cs
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Windows;
+using System.Windows.Input;
using MPF.Data;
namespace MPF.Windows
@@ -340,6 +341,15 @@ namespace MPF.Windows
ringCodeGuideWindow.Show();
}
+ ///
+ /// Handler for Title MouseDown event
+ ///
+ private void TitleMouseDown(object sender, MouseButtonEventArgs e)
+ {
+ if (e.ChangedButton == MouseButton.Left)
+ this.DragMove();
+ }
+
#endregion
}
}
diff --git a/MPF/Windows/MainWindow.xaml b/MPF/Windows/MainWindow.xaml
index 3f709015..3f3b2d81 100644
--- a/MPF/Windows/MainWindow.xaml
+++ b/MPF/Windows/MainWindow.xaml
@@ -11,23 +11,23 @@
BorderBrush="DarkGray" BorderThickness="2">
-
+
-
+
-
+
-
+
-
+
-
+
Media Preservation Frontend
@@ -73,14 +73,12 @@
-
-
-
+
-
+
diff --git a/MPF/Windows/MainWindow.xaml.cs b/MPF/Windows/MainWindow.xaml.cs
index cab89b12..b316a7a4 100644
--- a/MPF/Windows/MainWindow.xaml.cs
+++ b/MPF/Windows/MainWindow.xaml.cs
@@ -5,6 +5,7 @@ using System.IO;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
+using System.Windows.Input;
using System.Windows.Media;
using WinForms = System.Windows.Forms;
using BurnOutSharp;
@@ -1236,6 +1237,15 @@ namespace MPF.Windows
EnsureDiscInformation();
}
+ ///
+ /// Handler for Title MouseDown event
+ ///
+ private void TitleMouseDown(object sender, MouseButtonEventArgs e)
+ {
+ if (e.ChangedButton == MouseButton.Left)
+ this.DragMove();
+ }
+
#endregion
}
}
diff --git a/MPF/Windows/OptionsWindow.xaml b/MPF/Windows/OptionsWindow.xaml
index 59476f22..a0ca85ca 100644
--- a/MPF/Windows/OptionsWindow.xaml
+++ b/MPF/Windows/OptionsWindow.xaml
@@ -11,7 +11,7 @@
BorderBrush="DarkGray" BorderThickness="2">
-
+
@@ -19,15 +19,15 @@
-
+
-
+
-
+
Options
@@ -36,14 +36,12 @@
-
-
-
+
-
+
diff --git a/MPF/Windows/OptionsWindow.xaml.cs b/MPF/Windows/OptionsWindow.xaml.cs
index 225f5b7c..38d2f6c3 100644
--- a/MPF/Windows/OptionsWindow.xaml.cs
+++ b/MPF/Windows/OptionsWindow.xaml.cs
@@ -4,6 +4,7 @@ using System.IO;
using System.Linq;
using System.Windows;
using System.Windows.Forms;
+using System.Windows.Input;
using MPF.Data;
using MPF.Redump;
using WPFCustomMessageBox;
@@ -217,6 +218,15 @@ namespace MPF.Windows
}
}
+ ///
+ /// Handler for Title MouseDown event
+ ///
+ private void TitleMouseDown(object sender, MouseButtonEventArgs e)
+ {
+ if (e.ChangedButton == MouseButton.Left)
+ this.DragMove();
+ }
+
#endregion
}
}
diff --git a/MPF/Windows/RingCodeGuideWindow.xaml b/MPF/Windows/RingCodeGuideWindow.xaml
index 369f49f9..2ce7b887 100644
--- a/MPF/Windows/RingCodeGuideWindow.xaml
+++ b/MPF/Windows/RingCodeGuideWindow.xaml
@@ -11,7 +11,7 @@
BorderBrush="DarkGray" BorderThickness="2">
-
+
@@ -19,15 +19,15 @@
-
+
-
+
-
+
Ring Code Guide
@@ -36,14 +36,12 @@
-
-
-
+
-
+
diff --git a/MPF/Windows/RingCodeGuideWindow.xaml.cs b/MPF/Windows/RingCodeGuideWindow.xaml.cs
index 34e643fa..fc695b67 100644
--- a/MPF/Windows/RingCodeGuideWindow.xaml.cs
+++ b/MPF/Windows/RingCodeGuideWindow.xaml.cs
@@ -1,4 +1,5 @@
using System.Windows;
+using System.Windows.Input;
namespace MPF.Windows
{
@@ -30,6 +31,15 @@ namespace MPF.Windows
this.WindowState = WindowState.Minimized;
}
+ ///
+ /// Handler for Title MouseDown event
+ ///
+ private void TitleMouseDown(object sender, MouseButtonEventArgs e)
+ {
+ if (e.ChangedButton == MouseButton.Left)
+ this.DragMove();
+ }
+
#endregion
}
}