Add drag support #44
This commit is contained in:
parent
9678f1d1f2
commit
86fe78ba95
|
@ -12,8 +12,8 @@
|
|||
Style="{DynamicResource WindowStyle}"
|
||||
Icon="Images\app.png"
|
||||
>
|
||||
<Border Style="{DynamicResource WindowBorderStyle}">
|
||||
<Grid x:Name="grid">
|
||||
<Border Style="{DynamicResource WindowBorderStyle}" MouseDown="Border_OnMouseDown">
|
||||
<Grid x:Name="grid" >
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition ></RowDefinition>
|
||||
<RowDefinition></RowDefinition>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue