1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using System.Collections.Generic;
8
using System.Windows.Controls;
9
using System.Windows.Input;
10
using System.Windows.Data;
13
namespace ICSharpCode.WpfDesign.Designer.Controls
15
public class EnterTextBox : TextBox
17
protected override void OnKeyDown(KeyEventArgs e)
19
if (e.Key == Key.Enter) {
20
var b = BindingOperations.GetBindingExpressionBase(this, TextProperty);
26
else if (e.Key == Key.Escape) {
27
var b = BindingOperations.GetBindingExpressionBase(this, TextProperty);