From 53a4e6465e9eed77075be378f520ddc84c79c7fa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Sun, 18 Feb 2018 10:53:30 +0100 Subject: [PATCH] mouse event revamping, fit measure unit change from Pixels to Percent --- Crow.csproj | 2 +- Templates/Expandable.template | 2 +- Templates/ScrollBar.template | 6 +-- Templates/Spinner.template | 4 +- Tests/BasicTests.cs | 6 +-- Tests/Interfaces/Divers/0.crow | 4 ++ src/BubblingMouseButtonEventArgs.cs | 3 ++ src/GraphicObjects/CheckBox.cs | 4 +- src/GraphicObjects/GraphicObject.cs | 11 ------ src/GraphicObjects/RadioButton.cs | 4 +- src/Interface.cs | 59 ++++++++++++++++++++++++----- src/Measure.cs | 6 +-- 12 files changed, 74 insertions(+), 37 deletions(-) diff --git a/Crow.csproj b/Crow.csproj index d05f2ae6..b340d9e4 100644 --- a/Crow.csproj +++ b/Crow.csproj @@ -30,7 +30,7 @@ true full true - DEBUG_UPDATE0;DEBUG_FOCUS;DEBUG_DISPOSE;DEBUG_LAYOUTING0;TRACE0;DEBUG;MEASURE_TIME;DEBUG_LOAD0;DEBUG_BINDING0;DEBUG_CLIP_RECTANGLE0 + DEBUG_UPDATE0;DEBUG_FOCUS0;DEBUG_DISPOSE0;DEBUG_LAYOUTING0;TRACE0;DEBUG;MEASURE_TIME;DEBUG_LOAD0;DEBUG_BINDING0;DEBUG_CLIP_RECTANGLE0 false $(SolutionDir)build\Debug diff --git a/Templates/Expandable.template b/Templates/Expandable.template index c5dd1d83..a36958d5 100755 --- a/Templates/Expandable.template +++ b/Templates/Expandable.template @@ -2,7 +2,7 @@ - - - + - + \ No newline at end of file diff --git a/Templates/Spinner.template b/Templates/Spinner.template index dd957d25..60d7ccf9 100755 --- a/Templates/Spinner.template +++ b/Templates/Spinner.template @@ -6,7 +6,7 @@ Text="{²./Value}" TextAlignment="Right" Margin="0"/> - - + + diff --git a/Tests/BasicTests.cs b/Tests/BasicTests.cs index 9327a112..3bfd16e8 100644 --- a/Tests/BasicTests.cs +++ b/Tests/BasicTests.cs @@ -99,10 +99,10 @@ namespace Tests } get { return List2; } } - IList testList = Color.ColorDic.Values.OrderBy(c=>c.Hue) - .ThenBy(c=>c.Value).ThenBy(c=>c.Saturation) + List testList = Color.ColorDic.Values//.OrderBy(c=>c.Hue) + //.ThenBy(c=>c.Value).ThenBy(c=>c.Saturation) .ToList(); - public IList TestList { + public List TestList { set{ testList = value; NotifyValueChanged ("TestList", testList); diff --git a/Tests/Interfaces/Divers/0.crow b/Tests/Interfaces/Divers/0.crow index 42900792..055b037e 100755 --- a/Tests/Interfaces/Divers/0.crow +++ b/Tests/Interfaces/Divers/0.crow @@ -58,11 +58,15 @@ MouseEnter="{Foreground=White}" MouseLeave="{Foreground=DimGray}" MouseDown="{Background=DarkRed}" + MouseClick="{Foreground=Green}" + MouseDoubleClick="{Foreground=Yellow}" MouseUp="{Background=Onyx}"/>