From cc4c62ab5d809ff451ca475a7949adc4fdfd806b Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Mon, 8 Aug 2016 19:22:52 +0200 Subject: IMLInstantiator implementation --- src/GraphicObjects/ListBox.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/GraphicObjects/ListBox.cs') diff --git a/src/GraphicObjects/ListBox.cs b/src/GraphicObjects/ListBox.cs index 58d41e0b..397ef53d 100644 --- a/src/GraphicObjects/ListBox.cs +++ b/src/GraphicObjects/ListBox.cs @@ -151,10 +151,10 @@ namespace Crow //because _list total size is forced to approx size if (_gsList.Orientation == Orientation.Horizontal) { page.Width = Measure.Fit; - page.BindMember ("Height", "../HeightPolicy"); + Interface.Bindings.Add(new Binding (this, "Height", "../HeightPolicy")); } else { page.Height = Measure.Fit; - page.BindMember ("Width", "../WidthPolicy"); + Interface.Bindings.Add(new Binding (this, "Width", "../WidthPolicy")); } for (int i = (pageNum - 1) * itemPerPage; i < pageNum * itemPerPage; i++) { -- cgit v1.3.1-4-g156e