From d273958bd339c754f5d31ccbc72e94a9ed10df21 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Sat, 17 Oct 2015 19:59:12 +0200 Subject: [PATCH] Correctly compare items. --- src/Perspex.Controls/Primitives/SelectingItemsControl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Perspex.Controls/Primitives/SelectingItemsControl.cs b/src/Perspex.Controls/Primitives/SelectingItemsControl.cs index 6ff41fe8ab..f9c430d393 100644 --- a/src/Perspex.Controls/Primitives/SelectingItemsControl.cs +++ b/src/Perspex.Controls/Primitives/SelectingItemsControl.cs @@ -141,7 +141,7 @@ namespace Perspex.Controls.Primitives var index = IndexOf(Items, value); var effective = index != -1 ? value : null; - if (effective != old) + if (!object.Equals(effective, old)) { _selectedItem = effective; RaisePropertyChanged(SelectedItemProperty, old, effective, BindingPriority.LocalValue);