From 834c9101a59b4e40b41eb0ae509b0799d3d6d7ac Mon Sep 17 00:00:00 2001 From: tbulle Date: Thu, 6 Nov 2014 13:34:28 +0100 Subject: [PATCH] missing file --- .../Project/Extensions/ExtensionInterfaces.cs | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/AddIns/DisplayBindings/WpfDesign/WpfDesign/Project/Extensions/ExtensionInterfaces.cs diff --git a/src/AddIns/DisplayBindings/WpfDesign/WpfDesign/Project/Extensions/ExtensionInterfaces.cs b/src/AddIns/DisplayBindings/WpfDesign/WpfDesign/Project/Extensions/ExtensionInterfaces.cs new file mode 100644 index 0000000000..39eaa785ea --- /dev/null +++ b/src/AddIns/DisplayBindings/WpfDesign/WpfDesign/Project/Extensions/ExtensionInterfaces.cs @@ -0,0 +1,46 @@ +/* + * Created by SharpDevelop. + * User: trubra + * Date: 2014-11-06 + * Time: 11:45 + * + * To change this template use Tools | Options | Coding | Edit Standard Headers. + */ +using System; +using System.Windows.Input; + +namespace ICSharpCode.WpfDesign.Extensions +{ + /// + /// interface that can be implemented if a control is to be alerted of KeyDown Event on DesignPanel + /// + public interface IKeyDown + { + /// + /// Action to be performed on keydown on specific control + /// + /// + /// + void KeyDownAction(object sender, KeyEventArgs e); + + /// + /// if that control wants the default DesignPanel action to be suppressed, let this return false + /// + bool InvokeDefaultAction { get; } + } + + /// + /// interface that can be implemented if a control is to be alerted of KeyUp Event on DesignPanel + /// + public interface IKeyUp + { + /// + /// Action to be performed on keyup on specific control + /// + /// + /// + void KeyUpAction(object sender, KeyEventArgs e); + } + + +}