summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android
diff options
context:
space:
mode:
authorkingces95 <kingces95@users.noreply.github.com>2016-04-18 11:39:23 -0700
committerSamantha Houts <samantha@teamredwall.com>2016-04-18 11:39:23 -0700
commit0d57b35f21b9499876c65c7be6d11637543605aa (patch)
tree93ac3a3b3dd699d11f6a5dd7a3864bc32b8eee8e /Xamarin.Forms.Platform.Android
parent8f5c5e4e06b1ec5b781a6c20d75a67c8d82234f2 (diff)
downloadxamarin-forms-0d57b35f21b9499876c65c7be6d11637543605aa.tar.gz
xamarin-forms-0d57b35f21b9499876c65c7be6d11637543605aa.tar.bz2
xamarin-forms-0d57b35f21b9499876c65c7be6d11637543605aa.zip
CarouselView Fixes (#101)
* Fix CarouselView.Item * CarouselView formatting * Move ItemsView.Count to IItemsViewController * Remove dead code: CarouselView.IndexOf * CarouselView re-layout subviews on resize. * Add ItemTemplate to resources.xaml on UWP * Docs
Diffstat (limited to 'Xamarin.Forms.Platform.Android')
-rw-r--r--Xamarin.Forms.Platform.Android/Renderers/CarouselViewRenderer.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.Android/Renderers/CarouselViewRenderer.cs b/Xamarin.Forms.Platform.Android/Renderers/CarouselViewRenderer.cs
index 0056a1f8..55d9b0df 100644
--- a/Xamarin.Forms.Platform.Android/Renderers/CarouselViewRenderer.cs
+++ b/Xamarin.Forms.Platform.Android/Renderers/CarouselViewRenderer.cs
@@ -521,7 +521,7 @@ namespace Xamarin.Forms.Platform.Android
break;
case NotifyCollectionChangedAction.Remove:
- if (Element.Count == 0)
+ if (Controller.Count == 0)
throw new InvalidOperationException("CarouselView must retain a least one item.");
Adapter.NotifyItemRangeRemoved(
@@ -1189,8 +1189,9 @@ namespace Xamarin.Forms.Platform.Android
public override int ItemCount
{
- get {
- return Element.Count;
+ get
+ {
+ return Controller.Count;
}
}
public override int GetItemViewType(int position)