Add drag support #44

This commit is contained in:
qianlifeng
2014-03-18 20:42:23 +08:00
parent 9678f1d1f2
commit 86fe78ba95
2 changed files with 8 additions and 2 deletions

View File

@@ -24,6 +24,7 @@ using ContextMenu = System.Windows.Forms.ContextMenu;
using KeyEventArgs = System.Windows.Input.KeyEventArgs;
using MenuItem = System.Windows.Forms.MenuItem;
using MessageBox = System.Windows.MessageBox;
using MouseButton = System.Windows.Input.MouseButton;
using ToolTip = System.Windows.Controls.ToolTip;
namespace Wox
@@ -198,6 +199,11 @@ namespace Wox
}, TimeSpan.FromMilliseconds(150));
}
private void Border_OnMouseDown(object sender, MouseButtonEventArgs e)
{
if (e.ChangedButton == MouseButton.Left) DragMove();
}
private void StartProgress()
{
progressBar.Visibility = Visibility.Visible;