From ae4444baeff9b6f82cd8a5aec4e41e3ed7e66d00 Mon Sep 17 00:00:00 2001 From: "E.Z. Hart" Date: Thu, 7 Apr 2016 10:51:08 -0600 Subject: [PATCH] Un-suppress CS0067 in Platform.WP8; (#57) Fix warning 0067 "An event was declared but never used in the class in which it was declared." Added event invocation method to TextCellRenderer's CanExecuteChanged event to fix warning. --- Xamarin.Forms.Platform.WP8/TextCellRenderer.cs | 5 +++++ Xamarin.Forms.Platform.WP8/Xamarin.Forms.Platform.WP8.csproj | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Xamarin.Forms.Platform.WP8/TextCellRenderer.cs b/Xamarin.Forms.Platform.WP8/TextCellRenderer.cs index b3c2453..56a9a38 100644 --- a/Xamarin.Forms.Platform.WP8/TextCellRenderer.cs +++ b/Xamarin.Forms.Platform.WP8/TextCellRenderer.cs @@ -34,6 +34,11 @@ namespace Xamarin.Forms.Platform.WinPhone var entryCell = (EntryCell)parameter; entryCell.SendCompleted(); } + + protected virtual void OnCanExecuteChanged() + { + CanExecuteChanged?.Invoke(this, EventArgs.Empty); + } } public class EntryCellPhoneTextBox : PhoneTextBox diff --git a/Xamarin.Forms.Platform.WP8/Xamarin.Forms.Platform.WP8.csproj b/Xamarin.Forms.Platform.WP8/Xamarin.Forms.Platform.WP8.csproj index b8b2c4f..d2e99c8 100644 --- a/Xamarin.Forms.Platform.WP8/Xamarin.Forms.Platform.WP8.csproj +++ b/Xamarin.Forms.Platform.WP8/Xamarin.Forms.Platform.WP8.csproj @@ -32,7 +32,7 @@ prompt 4 true - 4014;0618;0219;0067 + 4014;0618;0219 pdbonly -- 2.7.4