Browse Source

Correctly compare items.

pull/279/head
Steven Kirk 11 years ago
parent
commit
d273958bd3
  1. 2
      src/Perspex.Controls/Primitives/SelectingItemsControl.cs

2
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);

Loading…
Cancel
Save