]> O.S.I.I.S - jp/crow.git/commitdiff
revert test 16/head
authorjpbruyere <jp.bruyere@hotmail.com>
Tue, 9 Aug 2016 00:04:38 +0000 (02:04 +0200)
committerjpbruyere <jp.bruyere@hotmail.com>
Tue, 9 Aug 2016 00:04:38 +0000 (02:04 +0200)
modifié :         Templates/CheckBox.goml
simply cancel binding for now
modifié :         src/CompilerServices/CompilerServices.cs

Templates/CheckBox.goml
src/CompilerServices/CompilerServices.cs

index a6f26555150902f761980c319d61814caa766b29..818e10c1ef7ffef49dd950f4bc2ddc216802c3e8 100755 (executable)
@@ -1,3 +1,6 @@
 <?xml version="1.0"?>
-
-       <Label/>
+<HorizontalStack Background="{./Background}" Margin="1" Spacing="1" Height="{./HeightPolicy}" Width="{./WidthPolicy}">
+       <Image Margin="2" Width="14"  Height="14" Path="#Crow.Images.Icons.checkbox.svg"
+               SvgSub="{./IsChecked}"/>
+       <Label Font="{./Font}" Text="{./Caption}" Height="{./HeightPolicy}" Width="{./WidthPolicy}"/>
+</HorizontalStack>
\ No newline at end of file
index 137ce626a259904053afb9faa2ea1adcf208b318..ebb365c9baaa5321e03459b2239a969d4922c961 100644 (file)
@@ -78,7 +78,10 @@ namespace Crow
                                                if (pi == null)
                                                        throw new Exception ("Member '" + reader.Name + "' not found in " + crowType.Name);
 
-                                               CompilerServices.EmitSetValue (reader.il, pi, reader.Value);
+                                               if (reader.Value.StartsWith("{"))
+                                                       Debug.WriteLine("Binding => " + pi.Name + ": " + reader.Value);
+                                               else
+                                                       CompilerServices.EmitSetValue (reader.il, pi, reader.Value);
 
                                        }
                                        reader.MoveToElement ();