Beispiel #1
0
 void Handle_QueryItemSize(object sender, Syncfusion.ListView.XForms.QueryItemSizeEventArgs e)
 {
     if (e.ItemIndex == 0 || e.ItemIndex == 3)
     {
         e.ItemSize = 105;
         e.Handled  = true;
     }
 }
        private void ListView_QueryItemSize(object sender, Syncfusion.ListView.XForms.QueryItemSizeEventArgs e)
        {
            SfListView             view   = (SfListView)sender;
            Collection <ItemModel> Source = (Collection <ItemModel>)view.ItemsSource;
            int height = (Source == null ? 1 : (Source.Count < e.ItemIndex ? 1 : Source[e.ItemIndex].Items.Count));

            e.ItemSize = 110 + (45 * height);
            e.Handled  = true;
        }