From: E.Z. Hart Date: Thu, 7 Apr 2016 16:51:08 +0000 (-0600) Subject: Un-suppress CS0067 in Platform.WP8; (#57) X-Git-Tag: beta-2.3.0-pre1~70^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae4444baeff9b6f82cd8a5aec4e41e3ed7e66d00;p=platform%2Fupstream%2Fxamarin-forms.git 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. --- 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