aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/ListBox.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-29 10:42:38 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-02-29 10:42:38 +0100
commit4907f0add724c2b29dd06f42cf66627e67265460 (patch)
tree211d3459b17f6a6b3a458ccd4ba52af5b2431d3f /src/GraphicObjects/ListBox.cs
parentc16be867ba1c26672cf400864effe71662ddddef (diff)
ensure Selection change is notified when data changed in listbox
Diffstat (limited to 'src/GraphicObjects/ListBox.cs')
-rw-r--r--src/GraphicObjects/ListBox.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/GraphicObjects/ListBox.cs b/src/GraphicObjects/ListBox.cs
index 0a9c0c77..69e71784 100644
--- a/src/GraphicObjects/ListBox.cs
+++ b/src/GraphicObjects/ListBox.cs
@@ -118,6 +118,10 @@ namespace Crow
return;
loadPage (1);
+
+ NotifyValueChanged ("SelectedIndex", _selectedIndex);
+ NotifyValueChanged ("SelectedItem", SelectedItem);
+ SelectedItemChanged.Raise (this, new SelectionChangeEventArgs (SelectedItem));
}
}
int itemPerPage = 100;