From 3d39c9883e64e39f6d42ba8607c60d26d2686de8 Mon Sep 17 00:00:00 2001 From: Anandh Ganesan Date: Thu, 21 Aug 2025 10:53:05 +0530 Subject: [PATCH 1/2] Updated the README.md file --- README.md | 111 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) diff --git a/README.md b/README.md index baea65c..503b2aa 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,117 @@ # How-to-load-xamarin.forms-listview-for-full-height-without-virtualization ? This example demonstrates how to load xamarin.forms listview for full height without virtualization. +## Sample + +```xaml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` ## Requirements to run the demo ## From 1a0d28bd3ca04850cb5c193fd349c13b1200d7f9 Mon Sep 17 00:00:00 2001 From: PiruthivirajM <44426156+PiruthivirajM@users.noreply.github.com> Date: Thu, 21 Aug 2025 16:30:05 +0530 Subject: [PATCH 2/2] Update README.md --- README.md | 94 +++++++------------------------------------------------ 1 file changed, 11 insertions(+), 83 deletions(-) diff --git a/README.md b/README.md index 503b2aa..c475ce5 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,7 @@ This example demonstrates how to load xamarin.forms listview for full height wit ```xaml - - @@ -23,32 +19,8 @@ This example demonstrates how to load xamarin.forms listview for full height wit - - - - - - - - - - - - - - - + . . . + . . . @@ -57,60 +29,16 @@ This example demonstrates how to load xamarin.forms listview for full height wit - - - - - - - - - - - - - - - - - - - + - - - - - +listView.Loaded += OnListViewLoaded; - - - - - - - - - - - - - +private void OnListViewLoaded(object sender, ListViewLoadedEventArgs e) +{ + var container = listView.GetVisualContainer(); + var extent = (double)container.GetType().GetRuntimeProperties().FirstOrDefault(x => x.Name == "TotalExtent").GetValue(container); + listView.HeightRequest = extent; +} ``` ## Requirements to run the demo ##