Commits

Christian Specht committed d1da388 Draft

set focus in MessageBoxWindow to OK button

  • Participants
  • Parent commits 5fbe5d4

Comments (0)

Files changed (1)

File src/MissileSharp.Launcher/Views/MessageBoxWindow.xaml

         ShowCloseButton="False"
         Icon="logo.ico"
         ShowTitleBar="True"
-        ShowIconOnTitleBar="true">
+        ShowIconOnTitleBar="true"
+        FocusManager.FocusedElement="{Binding ElementName=OkButton}">
     <Grid>
         <TextBlock Margin="5" Text="{Binding MessageText}" />
         <Button 
+            Name="OkButton"
             Content="OK"
             Command="{Binding CloseCommand}"
             CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}"