Bug 53224; Disable Cell if Command IsEnabled false (#812)
authorkingces95 <kingces95@users.noreply.github.com>
Wed, 15 Mar 2017 10:07:48 +0000 (03:07 -0700)
committerRui Marinho <me@ruimarinho.net>
Wed, 15 Mar 2017 10:07:48 +0000 (10:07 +0000)
Xamarin.Forms.Platform.WinRT/TableViewRenderer.cs

index 6ae92a7..7f12daa 100644 (file)
@@ -74,7 +74,8 @@ namespace Xamarin.Forms.Platform.WinRT
                                        var cell = item as Cell;
                                        if (cell != null)
                                        {
-                                               Controller.Model.RowSelected(cell);
+                                               if (cell.IsEnabled)
+                                                       Controller.Model.RowSelected(cell);
                                                break;
                                        }
                                }