diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-18 20:03:36 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-18 20:03:36 +0100 |
| commit | ac3e60a3c49a2a1175564fbc994d3aed47c6bfb4 (patch) | |
| tree | 64d5dd3ef06d608970a6f2d61e5442dc2fd73b28 /src/GraphicObjects | |
| parent | 3f84c4647e1adfb4da0415945113a70371b7527e (diff) | |
'/' handling to start at current node in BindingMember, test drag and drop
Diffstat (limited to 'src/GraphicObjects')
| -rw-r--r-- | src/GraphicObjects/GraphicObject.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index aca7032e..ef2e0197 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -317,7 +317,8 @@ namespace Crow public event EventHandler Enabled; /// <summary>Occurs when the enabled state this object is set to false</summary> public event EventHandler Disabled; - public event EventHandler Dragged; + public event EventHandler StartDrag; + public event EventHandler EndDrag; public event EventHandler Dropped; /// <summary>Occurs when one part of the rendering slot changed</summary> public event EventHandler<LayoutingEventArgs> LayoutChanged; @@ -1100,13 +1101,14 @@ namespace Crow /// </summary> protected virtual void onStartDrag (object sender, EventArgs e){ Debug.WriteLine("DRAG => " + this.ToString()); - Dragged.Raise (this, null); + StartDrag.Raise (this, null); } /// <summary> /// Occured when dragging ends without dropping /// </summary> protected virtual void onEndDrag (object sender, EventArgs e){ IsDragged = false; + EndDrag.Raise (this, null); Debug.WriteLine("END DRAG => " + this.ToString()); } /// <summary> |