summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Renderers/ListViewRenderer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Renderers/ListViewRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/ListViewRenderer.cs18
1 files changed, 9 insertions, 9 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/ListViewRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/ListViewRenderer.cs
index de86a25..1141afb 100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/ListViewRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/ListViewRenderer.cs
@@ -35,15 +35,15 @@ namespace Xamarin.Forms.Platform.Tizen
/// Note that at this stage of construction renderer dose not have required native element. This should
/// only be used with xamarin engine.
/// </summary>
- static ListViewRenderer()
+ public ListViewRenderer()
{
- RegisterPropertyHandler(ListView.IsGroupingEnabledProperty, (r, i) => (r as ListViewRenderer).UpdateIsGroupingEnabled(i));
- RegisterPropertyHandler(ListView.HasUnevenRowsProperty, (r) => (r as ListViewRenderer).UpdateHasUnevenRows());
- RegisterPropertyHandler(ListView.RowHeightProperty, (r, i) => (r as ListViewRenderer).UpdateRowHeight(i));
- RegisterPropertyHandler(ListView.SelectedItemProperty, (r) => (r as ListViewRenderer).UpdateSelectedItem());
- RegisterPropertyHandler(ListView.ItemsSourceProperty, (r) => (r as ListViewRenderer).UpdateSource());
- RegisterPropertyHandler("HeaderElement", (r) => (r as ListViewRenderer).UpdateHeader());
- RegisterPropertyHandler("FooterElement", (r) => (r as ListViewRenderer).UpdateFooter());
+ RegisterPropertyHandler(ListView.IsGroupingEnabledProperty, UpdateIsGroupingEnabled);
+ RegisterPropertyHandler(ListView.HasUnevenRowsProperty, UpdateHasUnevenRows);
+ RegisterPropertyHandler(ListView.RowHeightProperty, UpdateRowHeight);
+ RegisterPropertyHandler(ListView.SelectedItemProperty, UpdateSelectedItem);
+ RegisterPropertyHandler(ListView.ItemsSourceProperty, UpdateSource);
+ RegisterPropertyHandler("HeaderElement", UpdateHeader);
+ RegisterPropertyHandler("FooterElement", UpdateFooter);
}
/// <summary>
@@ -382,4 +382,4 @@ namespace Xamarin.Forms.Platform.Tizen
}
}
}
-}
+} \ No newline at end of file