diff options
author | Paul DiPietro <paul.dipietro@me.com> | 2016-04-11 09:50:28 -0700 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-04-11 09:50:28 -0700 |
commit | b2ad3e53a8ae03536cf9071b0bd5d0207ee2f10c (patch) | |
tree | 227d1614c84e3d2dbe7f6231276955a6a174ff6d /Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1590.cs | |
parent | c0468f1cc33fc4dc415c3a3ca4dc71986b04fc9c (diff) | |
download | xamarin-forms-b2ad3e53a8ae03536cf9071b0bd5d0207ee2f10c.tar.gz xamarin-forms-b2ad3e53a8ae03536cf9071b0bd5d0207ee2f10c.tar.bz2 xamarin-forms-b2ad3e53a8ae03536cf9071b0bd5d0207ee2f10c.zip |
Enable CS0618 warnings as errors (#72)
CS0618 occurs when using an obsolete property or method.
https://msdn.microsoft.com/en-us/library/x5ye6x1e.aspx
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1590.cs')
-rw-r--r-- | Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1590.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1590.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1590.cs index 2e1c70c7..16a81af2 100644 --- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1590.cs +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1590.cs @@ -88,10 +88,14 @@ namespace Xamarin.Forms.Controls.TestCasesPages { public ModuleMediaListItemTemplate() { +#pragma warning disable 618 var title = new Label { YAlign = TextAlignment.Center }; +#pragma warning restore 618 title.SetBinding(Label.TextProperty, new Binding("Title", BindingMode.OneWay)); +#pragma warning disable 618 var description = new Label { YAlign = TextAlignment.Center }; +#pragma warning restore 618 description.SetBinding(Label.TextProperty, new Binding("Description", BindingMode.OneWay)); View = new StackLayout @@ -108,7 +112,9 @@ namespace Xamarin.Forms.Controls.TestCasesPages { public ModuleMediaListHeaderTemplate() { +#pragma warning disable 618 var title = new Label { TextColor = Color.White, YAlign = TextAlignment.Center }; +#pragma warning restore 618 title.SetBinding(Label.TextProperty, new Binding("SectionName", BindingMode.OneWay)); View = new StackLayout |