diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-09 18:35:33 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-09 18:49:44 +0100 |
| commit | f92c105ada5520e84f4bbecc23ce9dc52895934e (patch) | |
| tree | 50e94e58545a033689996f0c9a7c7342dcb6c722 /src/GraphicObjects/ListBox.cs | |
| parent | 3966d297a24b08a548981bd480efeb13cb3ade3f (diff) | |
Simpler Combo, derived from ListBox with a popper as template root
Diffstat (limited to 'src/GraphicObjects/ListBox.cs')
| -rw-r--r-- | src/GraphicObjects/ListBox.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/GraphicObjects/ListBox.cs b/src/GraphicObjects/ListBox.cs index c90593cb..8cfffe49 100644 --- a/src/GraphicObjects/ListBox.cs +++ b/src/GraphicObjects/ListBox.cs @@ -90,7 +90,7 @@ namespace Crow } } public object SelectedItem{ - get { return data == null ? null : data[_selectedIndex]; } + get { return data == null ? "none" : data[_selectedIndex]; } } [XmlAttributeAttribute]//[DefaultValue(null)] public IList Data { @@ -157,7 +157,7 @@ namespace Crow loadingTime.ElapsedMilliseconds, this.ToString()); #endif } - void _scroller_ValueChanged (object sender, ValueChangeEventArgs e) + protected void _scroller_ValueChanged (object sender, ValueChangeEventArgs e) { if (_gsList == null) return; @@ -177,7 +177,7 @@ namespace Crow } } } - void _list_LayoutChanged (object sender, LayoutingEventArgs e) + protected void _list_LayoutChanged (object sender, LayoutingEventArgs e) { if (_gsList == null) return; @@ -211,6 +211,7 @@ namespace Crow SelectedItemChanged.Raise (sender, new SelectionChangeEventArgs((sender as GraphicObject).DataSource)); NotifyValueChanged ("SelectedItem", (sender as GraphicObject).DataSource); //Debug.WriteLine ((sender as GraphicObject).DataSource); + } #region IXmlSerializable |