summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core
diff options
context:
space:
mode:
authorSamantha Houts <samantha@teamredwall.com>2016-07-01 13:51:38 -0700
committerRui Marinho <me@ruimarinho.net>2016-07-01 21:51:38 +0100
commiteb84f968f2fac47c375724465854e58c85e45bee (patch)
tree64d9ded58234602c4bdea1e706db6e0f9ba90c3c /Xamarin.Forms.Core
parent128796e6d0c6bc4c48ba3b6de4ca97a33d698724 (diff)
downloadxamarin-forms-eb84f968f2fac47c375724465854e58c85e45bee.tar.gz
xamarin-forms-eb84f968f2fac47c375724465854e58c85e45bee.tar.bz2
xamarin-forms-eb84f968f2fac47c375724465854e58c85e45bee.zip
[All] Crash fixes for ListViews (#243)
* [Controls] Add repro for 42277 * [Android] No crash if GroupHeaderTemplate=null * [Android] Fix DataTemplateSelector crash * [Core] Expose ListProxy on TIL * [iOS] Fix DataTemplateSelector crash * [Win] Fix DataTemplateSelector crash * [Docs] Update docs * [Core] Implement ListProxy explicitly Allows ListProxy property to stay internal. * [Controls] Revert unnecessary change to shproj
Diffstat (limited to 'Xamarin.Forms.Core')
-rw-r--r--Xamarin.Forms.Core/ITemplatedItemsList.cs2
-rw-r--r--Xamarin.Forms.Core/TemplatedItemsList.cs5
2 files changed, 7 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/ITemplatedItemsList.cs b/Xamarin.Forms.Core/ITemplatedItemsList.cs
index ae979d71..be9055af 100644
--- a/Xamarin.Forms.Core/ITemplatedItemsList.cs
+++ b/Xamarin.Forms.Core/ITemplatedItemsList.cs
@@ -17,6 +17,8 @@ namespace Xamarin.Forms
IEnumerable ItemsSource { get; }
IReadOnlyList<string> ShortNames { get; }
+ IListProxy ListProxy { get; }
+
int GetGlobalIndexForGroup(ITemplatedItemsList<TItem> group);
int GetGlobalIndexOfItem(object item);
ITemplatedItemsList<TItem> GetGroup(int index);
diff --git a/Xamarin.Forms.Core/TemplatedItemsList.cs b/Xamarin.Forms.Core/TemplatedItemsList.cs
index 75a0d394..cb64e2e9 100644
--- a/Xamarin.Forms.Core/TemplatedItemsList.cs
+++ b/Xamarin.Forms.Core/TemplatedItemsList.cs
@@ -194,6 +194,11 @@ namespace Xamarin.Forms
private set { SetValue(ListProxyPropertyKey, value); }
}
+ IListProxy ITemplatedItemsList<TItem>.ListProxy
+ {
+ get { return ListProxy; }
+ }
+
DataTemplate ItemTemplate
{
get { return (DataTemplate)_itemsView.GetValue(_itemTemplateProperty); }