aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/GraphicObject.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-08-05 18:32:18 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2016-08-05 18:32:18 +0200
commitb9e90a3df66f4bd8228c1246af830d7801ea57ba (patch)
tree8de343d8341be621c4b5daa12899155e0bc2f26a /src/GraphicObjects/GraphicObject.cs
parente9963abca14fbad8ff6c215e5c9d6b45652b38dc (diff)
TreeView
template access with './', update all templates binding path begining with '/' starts at current level
Diffstat (limited to 'src/GraphicObjects/GraphicObject.cs')
-rw-r--r--src/GraphicObjects/GraphicObject.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs
index f2f2564f..39556976 100644
--- a/src/GraphicObjects/GraphicObject.cs
+++ b/src/GraphicObjects/GraphicObject.cs
@@ -1136,10 +1136,13 @@ namespace Crow
MouseUp.Raise (this, e);
- if (MouseIsIn (e.Position)&&HasFocus)
- onMouseClick(sender,e);
+ if (MouseIsIn (e.Position) && IsActive)
+ onMouseClick (this, e);
}
public virtual void onMouseClick(object sender, MouseButtonEventArgs e){
+ GraphicObject p = Parent as GraphicObject;
+ if (p != null)
+ p.onMouseClick(sender,e);
MouseClick.Raise (this, e);
}
public virtual void onMouseWheel(object sender, MouseWheelEventArgs e){