From c02ea44eb9010aee1f03fba4342730f338598356 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Wed, 25 May 2016 15:46:58 +0200 Subject: [PATCH] debug bindings when new value is null --- Templates/ComboBox.goml | 2 +- Tests/GLCrow.cs | 10 ++++- Tests/Interfaces/Divers/testBind0.crow | 5 +++ Tests/Interfaces/Divers/testCombobox.crow | 3 +- Tests/Tests.csproj | 4 ++ src/CompilerServices/CompilerServices.cs | 49 +++++++++++++++++------ src/GraphicObjects/ListBox.cs | 2 +- 7 files changed, 58 insertions(+), 17 deletions(-) create mode 100755 Tests/Interfaces/Divers/testBind0.crow diff --git a/Templates/ComboBox.goml b/Templates/ComboBox.goml index aeedd97f..9a5addaf 100755 --- a/Templates/ComboBox.goml +++ b/Templates/ComboBox.goml @@ -21,7 +21,7 @@ Height="{../HeightPolicy}" Width="{../WidthPolicy}" HorizontalAlignment="Left" ValueChanged="../../../_scroller_ValueChanged"> - diff --git a/Tests/GLCrow.cs b/Tests/GLCrow.cs index 3064ad37..1ede0268 100644 --- a/Tests/GLCrow.cs +++ b/Tests/GLCrow.cs @@ -94,9 +94,17 @@ namespace Tests w.Run (30); } } - + public object data = "datas"; + public object Datas { + get { return data; } + } + void onSetDataToNull (object sender, MouseButtonEventArgs e) { + data = null; + NotifyValueChanged ("Datas", null); + } public override void OnLoad () { + //testFiles = new string [] { @"Interfaces/Divers/testBind0.crow" }; testFiles = new string [] { @"Interfaces/Divers/testCombobox.crow" }; testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/GraphicObject", "*.crow")).ToArray (); //testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/basicTests", "*.crow")).ToArray (); diff --git a/Tests/Interfaces/Divers/testBind0.crow b/Tests/Interfaces/Divers/testBind0.crow new file mode 100755 index 00000000..d8991c71 --- /dev/null +++ b/Tests/Interfaces/Divers/testBind0.crow @@ -0,0 +1,5 @@ + + + +