Skip to content

Commit

Permalink
Make splash/loading window draggable
Browse files Browse the repository at this point in the history
  • Loading branch information
damieng committed Feb 15, 2016
1 parent ba63514 commit ff7588d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Update/AnimatedGifWindow.cs
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
#if !MONO
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Shell;
using System.Windows.Threading;
using WpfAnimatedGif;

namespace Squirrel.Update
Expand Down Expand Up @@ -89,6 +85,12 @@ public static void ShowWindow(TimeSpan initialDelay, CancellationToken token, Pr
thread.SetApartmentState(ApartmentState.STA);
thread.Start();
}

protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
{
base.OnMouseLeftButtonDown(e);
this.DragMove();
}
}
}

Expand Down

0 comments on commit ff7588d

Please sign in to comment.