From 8d1e0c98e1efac4f9ee133634251a48fa6547ce6 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Wed, 31 Aug 2016 12:26:16 +0200 Subject: [PATCH] debug mouse leave, move recursive test back into interface instead of go.MouseLeave Menu IsOpen handling MenuItem Open and Close events --- Default.style | 2 ++ Templates/MenuItem.template | 4 +-- Tests/Interfaces/TemplatedGroup/0.crow | 9 +++-- src/GraphicObjects/GraphicObject.cs | 11 ------ src/GraphicObjects/Menu.cs | 16 +++++++++ src/GraphicObjects/MenuItem.cs | 43 ++++++++++++++++++++++-- src/GraphicObjects/Popper.cs | 36 ++++++++++++-------- src/GraphicObjects/TemplatedContainer.cs | 17 +++++++--- src/GraphicObjects/TemplatedGroup.cs | 2 +- src/Interface.cs | 22 +++++++++--- 10 files changed, 120 insertions(+), 42 deletions(-) diff --git a/Default.style b/Default.style index f79ded37..933f89fe 100644 --- a/Default.style +++ b/Default.style @@ -26,6 +26,8 @@ MenuItem { Width = Fit; Background = Transparent; Foreground = LightGray; + Open = {Background = Mantis;Foreground=Jet;} + Close = {Foreground=LightGray;Background=Transparent;} } MessageBox { Width=200; diff --git a/Templates/MenuItem.template b/Templates/MenuItem.template index 4d96405b..c03cc27d 100644 --- a/Templates/MenuItem.template +++ b/Templates/MenuItem.template @@ -1,9 +1,7 @@  + IsPopped="{²./IsOpened}">