Syncfusion.SfListView.XForms
Example 

QueryItemSize Event

Occurs whenever an item comes into view and query the item size.
Syntax
public event QueryItemSizeEventHandler QueryItemSize
Event Data

The event handler receives an argument of type QueryItemSizeEventArgs containing data related to this event. The following QueryItemSizeEventArgs properties provide information specific to this event.

PropertyDescription
Gets or sets a value indicating whether the event should be handled or not.  
Gets the underlying data of the queried item.  
Gets the index of the item in the Syncfusion.DataSource.DisplayItems collection.  
Gets or sets the size of an item. For vertical orientation, it will be considered as item height. For horizontal orientation, it will be considered as item width.  
Gets the item type of the queried item.  
Remarks
We can define whether the specified size can be set to the item or not by handling the QueryItemSize event. When the Handled property in the QueryItemSizeEventArgs argument is false, the decided size will not be set to the item.
Example
The following example demonstrates how to wire the QueryItemSize event in SfListView.
listView.QueryItemSize += ListView_QueryItemSize;
            
private void ListView_QueryItemSize(object sender, QueryItemSizeEventArgs e)
{
   if (e.ItemIndex == 1)
   {
       e.ItemSize = 300;
       e.Handled = true;
   }
}
AssemblyVersion

Syncfusion.SfListView.XForms: 17.2451.0.34

See Also