File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed
SfListViewSample/SfListViewSample/SfListViewSample Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -17,23 +17,7 @@ public partial class MainPage : ContentPage
1717 #region Constructor
1818 public MainPage ( )
1919 {
20- InitializeComponent ( ) ;
21- listView1 . Loaded += ListView1_Loaded ;
22- listView2 . Loaded += ListView2_Loaded ;
23- }
24-
25- private void ListView1_Loaded ( object sender , ListViewLoadedEventArgs e )
26- {
27- var container = listView1 . GetVisualContainer ( ) ;
28- var extent = ( double ) container . GetType ( ) . GetRuntimeProperties ( ) . FirstOrDefault ( x => x . Name == "TotalExtent" ) . GetValue ( container ) ;
29- listView1 . HeightRequest = extent ;
30- }
31-
32- private void ListView2_Loaded ( object sender , ListViewLoadedEventArgs e )
33- {
34- var container = listView2 . GetVisualContainer ( ) ;
35- var extent = ( double ) container . GetType ( ) . GetRuntimeProperties ( ) . FirstOrDefault ( x => x . Name == "TotalExtent" ) . GetValue ( container ) ;
36- listView2 . HeightRequest = extent ;
20+ InitializeComponent ( ) ;
3721 }
3822 #endregion
3923 }
You can’t perform that action at this time.
0 commit comments