From 55fbe4321486456c1ed3418760aaa8171213eac8 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Sat, 2 May 2015 20:45:25 +0200 Subject: [PATCH] Fix SelectingItemsControl.CoerceSelectedItem --- Perspex.Controls/Primitives/SelectingItemsControl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Perspex.Controls/Primitives/SelectingItemsControl.cs b/Perspex.Controls/Primitives/SelectingItemsControl.cs index b90c5b1e89..2de1177c93 100644 --- a/Perspex.Controls/Primitives/SelectingItemsControl.cs +++ b/Perspex.Controls/Primitives/SelectingItemsControl.cs @@ -228,7 +228,7 @@ namespace Perspex.Controls.Primitives { if (value != null && (control.Items == null || control.Items.IndexOf(value) == -1)) { - return -1; + return null; } }