summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.ControlGallery.iOS
diff options
context:
space:
mode:
authorRui Marinho <me@ruimarinho.net>2016-06-22 14:59:54 (GMT)
committerGitHub <noreply@github.com>2016-06-22 14:59:54 (GMT)
commite5dd925ee5efe8d931aa8f1cbfc13d793faee567 (patch)
tree7f12179273803dcae1cc7da237814b0bddce194f /Xamarin.Forms.ControlGallery.iOS
parent22f3c5b3646f03c597f8dd1151fabedfb6007349 (diff)
downloadxamarin-forms-e5dd925ee5efe8d931aa8f1cbfc13d793faee567.zip
xamarin-forms-e5dd925ee5efe8d931aa8f1cbfc13d793faee567.tar.gz
xamarin-forms-e5dd925ee5efe8d931aa8f1cbfc13d793faee567.tar.bz2
[Controls] Fix use of internal extension methods (#237)
* [Controls] Fix use of internal extension methods * [Controls] Update Xamarin UItest on controls * Update package TestCloud * Fix * Revert "Fix" This reverts commit 283f96a2210322bf37795dff61394938eb909f59. * Fix reference
Diffstat (limited to 'Xamarin.Forms.ControlGallery.iOS')
-rw-r--r--Xamarin.Forms.ControlGallery.iOS/CustomRenderers.cs15
-rw-r--r--Xamarin.Forms.ControlGallery.iOS/Xamarin.Forms.ControlGallery.iOS.csproj2
-rw-r--r--Xamarin.Forms.ControlGallery.iOS/packages.config4
3 files changed, 13 insertions, 8 deletions
diff --git a/Xamarin.Forms.ControlGallery.iOS/CustomRenderers.cs b/Xamarin.Forms.ControlGallery.iOS/CustomRenderers.cs
index d578786..44d8664 100644
--- a/Xamarin.Forms.ControlGallery.iOS/CustomRenderers.cs
+++ b/Xamarin.Forms.ControlGallery.iOS/CustomRenderers.cs
@@ -6,6 +6,7 @@ using Xamarin.Forms.ControlGallery.iOS;
using System.Collections.Generic;
using System.Linq;
using System.Drawing;
+using System.Collections;
#if __UNIFIED__
using UIKit;
@@ -324,12 +325,12 @@ namespace Xamarin.Forms.ControlGallery.iOS
public IEnumerable<DataSource> Items
{
//get{ }
- set { _tableItems = value.ToList(); }
+ set { _tableItems = new List<DataSource>(value); }
}
public NativeiOSListViewSource(NativeListView2 view)
{
- _tableItems = view.Items.ToList();
+ _tableItems = new List<DataSource>(view.Items);
_listView = view;
}
@@ -407,12 +408,13 @@ namespace Xamarin.Forms.ControlGallery.iOS
public IEnumerable<string> Items
{
- set { _tableItems = value.ToList(); }
+ set { _tableItems = new List<string>(value);
+ }
}
public NativeListViewSource(NativeListView view)
{
- _tableItems = view.Items.ToList();
+ _tableItems = new List<string>(view.Items);
_listView = view;
}
@@ -524,7 +526,10 @@ namespace Xamarin.Forms.ControlGallery.iOS
public CollectionViewController(UICollectionViewLayout layout, OnItemSelected onItemSelected) : base(layout)
{
- items = Enumerable.Range(0, 20).Select(c => $"#{c}").ToList();
+ items = new List<string>();
+ for (int i = 0; i < 20; i++) {
+ items.Add($"#{i}");
+ }
_onItemSelected = onItemSelected;
}
diff --git a/Xamarin.Forms.ControlGallery.iOS/Xamarin.Forms.ControlGallery.iOS.csproj b/Xamarin.Forms.ControlGallery.iOS/Xamarin.Forms.ControlGallery.iOS.csproj
index 0b0f5b1..50b3632 100644
--- a/Xamarin.Forms.ControlGallery.iOS/Xamarin.Forms.ControlGallery.iOS.csproj
+++ b/Xamarin.Forms.ControlGallery.iOS/Xamarin.Forms.ControlGallery.iOS.csproj
@@ -244,7 +244,7 @@
</Reference>
<Reference Include="Xamarin.iOS" />
<Reference Include="Calabash">
- <HintPath>..\packages\Xamarin.TestCloud.Agent.0.19.0\lib\Xamarin.iOS10\Calabash.dll</HintPath>
+ <HintPath>..\packages\Xamarin.TestCloud.Agent.0.19.1\lib\Xamarin.iOS10\Calabash.dll</HintPath>
</Reference>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
diff --git a/Xamarin.Forms.ControlGallery.iOS/packages.config b/Xamarin.Forms.ControlGallery.iOS/packages.config
index e3a4dde..c372c5e 100644
--- a/Xamarin.Forms.ControlGallery.iOS/packages.config
+++ b/Xamarin.Forms.ControlGallery.iOS/packages.config
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Xamarin.Insights" version="1.11.4" targetFramework="xamarinios10" />
- <package id="Xamarin.TestCloud.Agent" version="0.19.0" targetFramework="xamarinios10" />
-</packages> \ No newline at end of file
+ <package id="Xamarin.TestCloud.Agent" version="0.19.1" targetFramework="xamarinios10" />
+</packages>