Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 52f36d4

Browse files
committed
Allow dialog window to be dragged
1 parent 460b394 commit 52f36d4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/GitHub.VisualStudio.UI/Views/Dialog/GitHubDialogWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</Window.Resources>
4646
<Window.ContentTemplate>
4747
<DataTemplate>
48-
<Border BorderThickness="1" BorderBrush="{DynamicResource {x:Static vs:EnvironmentColors.ToolWindowBorderBrushKey}}">
48+
<Border MouseDown="Border_MouseDown" BorderThickness="1" BorderBrush="{DynamicResource {x:Static vs:EnvironmentColors.ToolWindowBorderBrushKey}}">
4949
<DockPanel>
5050
<!-- close button and padding -->
5151
<shellControls:GlyphButton x:Uid="button_Close"

src/GitHub.VisualStudio.UI/Views/Dialog/GitHubDialogWindow.xaml.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,10 @@ void CloseButton_Click(object sender, System.Windows.RoutedEventArgs e)
2020
{
2121
Close();
2222
}
23+
24+
void Border_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
25+
{
26+
DragMove();
27+
}
2328
}
2429
}

0 commit comments

Comments
 (0)