diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-05 18:32:18 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-05 18:32:18 +0200 |
| commit | b9e90a3df66f4bd8228c1246af830d7801ea57ba (patch) | |
| tree | 8de343d8341be621c4b5daa12899155e0bc2f26a /src/GraphicObjects/Expandable.cs | |
| parent | e9963abca14fbad8ff6c215e5c9d6b45652b38dc (diff) | |
TreeView
template access with './', update all templates
binding path begining with '/' starts at current level
Diffstat (limited to 'src/GraphicObjects/Expandable.cs')
| -rw-r--r-- | src/GraphicObjects/Expandable.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/GraphicObjects/Expandable.cs b/src/GraphicObjects/Expandable.cs index d21936e8..819987eb 100644 --- a/src/GraphicObjects/Expandable.cs +++ b/src/GraphicObjects/Expandable.cs @@ -49,7 +49,8 @@ namespace Crow #region GraphicObject overrides public override void onMouseClick (object sender, MouseButtonEventArgs e) { - IsExpanded = !IsExpanded; + if (this.HasFocus) + IsExpanded = !IsExpanded; base.onMouseClick (sender, e); } #endregion |