From 9606b673c283f59bc55ad95362560361e84c1ebe Mon Sep 17 00:00:00 2001 From: morkt Date: Fri, 3 Mar 2017 17:53:43 +0400 Subject: [PATCH] (error dialogs): focus forced on the first button. --- GUI/FileErrorDialog.xaml | 3 ++- GUI/FileExistsDialog.xaml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/GUI/FileErrorDialog.xaml b/GUI/FileErrorDialog.xaml index 58830ee1..2072d834 100644 --- a/GUI/FileErrorDialog.xaml +++ b/GUI/FileErrorDialog.xaml @@ -5,6 +5,7 @@ xmlns:s="clr-namespace:GARbro.GUI.Strings" Title="{Binding Title}" ShowInTaskbar="False" WindowStartupLocation="CenterOwner" ResizeMode="NoResize" SizeToContent="WidthAndHeight" ShowActivated="True" + FocusManager.FocusedElement="{Binding ElementName=FirstButton}" Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"> -