summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WP8
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2016-11-09 15:15:12 +0100
committerJason Smith <jason.smith@xamarin.com>2016-11-16 12:03:13 -0800
commite5af21fdc32972d4355af86349d446a2bb6a5b02 (patch)
tree50cde95dcc90832977f5c4caf23eee6cca087601 /Xamarin.Forms.Platform.WP8
parent693cc75068fed11c2760a1e8ef2b05310359bbea (diff)
downloadxamarin-forms-e5af21fdc32972d4355af86349d446a2bb6a5b02.tar.gz
xamarin-forms-e5af21fdc32972d4355af86349d446a2bb6a5b02.tar.bz2
xamarin-forms-e5af21fdc32972d4355af86349d446a2bb6a5b02.zip
[C] Use a Binding for ItemsSource object selection
Diffstat (limited to 'Xamarin.Forms.Platform.WP8')
-rw-r--r--Xamarin.Forms.Platform.WP8/PickerRenderer.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.WP8/PickerRenderer.cs b/Xamarin.Forms.Platform.WP8/PickerRenderer.cs
index 5dc1d838..8b904fed 100644
--- a/Xamarin.Forms.Platform.WP8/PickerRenderer.cs
+++ b/Xamarin.Forms.Platform.WP8/PickerRenderer.cs
@@ -27,9 +27,9 @@ namespace Xamarin.Forms.Platform.WinPhone
base.OnElementChanged(e);
if (e.OldElement != null)
- ((ObservableList<string>)Element.Items).CollectionChanged -= ItemsCollectionChanged;
+ ((INotifyCollectionChanged)Element.Items).CollectionChanged -= ItemsCollectionChanged;
- ((ObservableList<string>)Element.Items).CollectionChanged += ItemsCollectionChanged;
+ ((INotifyCollectionChanged)Element.Items).CollectionChanged += ItemsCollectionChanged;
_listPicker.ItemTemplate = (System.Windows.DataTemplate)System.Windows.Application.Current.Resources["PickerItemTemplate"];
_listPicker.FullModeItemTemplate = (System.Windows.DataTemplate)System.Windows.Application.Current.Resources["PickerFullItemTemplate"];