diff options
Diffstat (limited to 'src/GraphicObjects/ListBox.cs')
| -rw-r--r-- | src/GraphicObjects/ListBox.cs | 4 |
1 files changed, 2 insertions, 2 deletions
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++) { |