CustomDialog.xaml.cs 603 B

12345678910111213141516171819202122232425
  1. namespace GDNXFD.Alert.Config.Controls
  2. {
  3. using System.Windows.Controls;
  4. /// <summary>
  5. /// Interaction logic for CustomDialog.xaml
  6. /// </summary>
  7. public partial class CustomDialog : UserControl
  8. {
  9. /// <summary>
  10. /// Constructor
  11. /// </summary>
  12. public CustomDialog()
  13. {
  14. InitializeComponent();
  15. }
  16. private void CancelButton_IsVisibleChanged(object sender, System.Windows.DependencyPropertyChangedEventArgs e)
  17. {
  18. if ((bool)e.NewValue)
  19. this.CancelButton.Focus();
  20. }
  21. }
  22. }