Un-suppress CS0067 in Platform.WP8; (#57)
authorE.Z. Hart <hartez@users.noreply.github.com>
Thu, 7 Apr 2016 16:51:08 +0000 (10:51 -0600)
committerJason Smith <jason.smith@xamarin.com>
Thu, 7 Apr 2016 16:51:08 +0000 (09:51 -0700)
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
Xamarin.Forms.Platform.WP8/Xamarin.Forms.Platform.WP8.csproj

index b3c2453..56a9a38 100644 (file)
@@ -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
index b8b2c4f..d2e99c8 100644 (file)
@@ -32,7 +32,7 @@
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
-    <NoWarn>4014;0618;0219;0067</NoWarn>
+    <NoWarn>4014;0618;0219</NoWarn>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
     <DebugType>pdbonly</DebugType>