diff options
Diffstat (limited to 'Xamarin.Forms.Controls/GalleryPages/CellsGalleries/TextCellTablePage.cs')
-rw-r--r-- | Xamarin.Forms.Controls/GalleryPages/CellsGalleries/TextCellTablePage.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Xamarin.Forms.Controls/GalleryPages/CellsGalleries/TextCellTablePage.cs b/Xamarin.Forms.Controls/GalleryPages/CellsGalleries/TextCellTablePage.cs index b9cc0cf3..fa1697b1 100644 --- a/Xamarin.Forms.Controls/GalleryPages/CellsGalleries/TextCellTablePage.cs +++ b/Xamarin.Forms.Controls/GalleryPages/CellsGalleries/TextCellTablePage.cs @@ -7,11 +7,8 @@ namespace Xamarin.Forms.Controls { Title = "TextCell Table Gallery - Legacy"; - Device.OnPlatform (iOS: () => { - if (Device.Idiom == TargetIdiom.Tablet) { - Padding = new Thickness (0, 0, 0, 60); - } - }); + if (Device.RuntimePlatform == Device.iOS && Device.Idiom == TargetIdiom.Tablet) + Padding = new Thickness(0, 0, 0, 60); var tableSection = new TableSection ("Section One") { new TextCell { Text = "Text 1" }, |