diff options
author | E.Z. Hart <hartez@users.noreply.github.com> | 2016-04-07 10:51:08 -0600 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-04-07 09:51:08 -0700 |
commit | ae4444baeff9b6f82cd8a5aec4e41e3ed7e66d00 (patch) | |
tree | bd7a901e74d075bd57169b0ecc381d67f6a949e9 /Xamarin.Forms.Platform.WP8 | |
parent | bb7bf53447538d5f17cac48052585a6a9282f70b (diff) | |
download | xamarin-forms-ae4444baeff9b6f82cd8a5aec4e41e3ed7e66d00.tar.gz xamarin-forms-ae4444baeff9b6f82cd8a5aec4e41e3ed7e66d00.tar.bz2 xamarin-forms-ae4444baeff9b6f82cd8a5aec4e41e3ed7e66d00.zip |
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.
Diffstat (limited to 'Xamarin.Forms.Platform.WP8')
-rw-r--r-- | Xamarin.Forms.Platform.WP8/TextCellRenderer.cs | 5 | ||||
-rw-r--r-- | Xamarin.Forms.Platform.WP8/Xamarin.Forms.Platform.WP8.csproj | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.WP8/TextCellRenderer.cs b/Xamarin.Forms.Platform.WP8/TextCellRenderer.cs index b3c2453d..56a9a389 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 b8b2c4f5..d2e99c8a 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 @@ <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> |