diff --git a/SampleForDoc/GacUI/UIRes/32bits/control_ribbon_gallery.bin b/SampleForDoc/GacUI/UIRes/32bits/control_ribbon_gallery.bin index 42802e68..da9ad496 100644 Binary files a/SampleForDoc/GacUI/UIRes/32bits/control_ribbon_gallery.bin and b/SampleForDoc/GacUI/UIRes/32bits/control_ribbon_gallery.bin differ diff --git a/SampleForDoc/GacUI/UIRes/64bits/control_ribbon_gallery.bin b/SampleForDoc/GacUI/UIRes/64bits/control_ribbon_gallery.bin index eaff77fc..d8c936c7 100644 Binary files a/SampleForDoc/GacUI/UIRes/64bits/control_ribbon_gallery.bin and b/SampleForDoc/GacUI/UIRes/64bits/control_ribbon_gallery.bin differ diff --git a/SampleForDoc/GacUI/XmlRes/control_ribbon_gallery/Resource.xml b/SampleForDoc/GacUI/XmlRes/control_ribbon_gallery/Resource.xml index c2429c28..254af6e0 100644 --- a/SampleForDoc/GacUI/XmlRes/control_ribbon_gallery/Resource.xml +++ b/SampleForDoc/GacUI/XmlRes/control_ribbon_gallery/Resource.xml @@ -32,15 +32,15 @@ { prop IconColor : Color = (cast Color "#000000") {not observe} - new(color: Color) { IconColor = color; } + new(color: Color) { this.IconColor = color; } } class ColorGroup { - prop Items : observe ColorItem^[] = null {not observe} + prop Items : observe ColorItem^[] = {} {not observe} prop Name : string = "" {not observe} - new(name: string, items: observe ColorItem^[]) { Name = name; Items = items; } + new(name: string) { this.Name = name; } } } ]]> @@ -63,28 +63,33 @@ @@ -115,25 +120,25 @@ - self.groups + self.colorGroups Name Items - - + + - - - + + + - + diff --git a/TODO.md b/TODO.md index e52ad999..0b031287 100644 --- a/TODO.md +++ b/TODO.md @@ -9,6 +9,7 @@ https://zhuanlan.zhihu.com/p/39369370 - [ ] `GlobalStringKey` need to remember the `GlobalStringKeyManager` object, and if the global object is changed, it means this key becomes a wild pointer, it should crash. - [ ] Collection literal `{a b c}` should react to the "receiving type" if the receiving type is a known collection type. - So that it is able to do `DealWithObservableList({1 2 3});` +- [ ] `new(name: string, items: observe X^[]) { this.Name = name; this.Items = items; }` doesn't work for `items`. - [ ] `let X = Y in (F(X.a.b.c))` reports `X does not exist in the current scope` in binding property value - while `F((let X = Y.a.b).c)` works - [ ] GacGen reports only "error dumping resource file" while the resource file contains some syntax errors preventing GacGen from reading it