Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/syncfusionexamples/how-to-set-different-row-height-for-each-row-in-xamarin.forms-listview
This example demonstrates how to set different row height for each row in Xamarin Forms sflistview.
https://github.com/syncfusionexamples/how-to-set-different-row-height-for-each-row-in-xamarin.forms-listview
xamarin xamarin-forms xamarin-listview
Last synced: about 1 month ago
JSON representation
This example demonstrates how to set different row height for each row in Xamarin Forms sflistview.
- Host: GitHub
- URL: https://github.com/syncfusionexamples/how-to-set-different-row-height-for-each-row-in-xamarin.forms-listview
- Owner: SyncfusionExamples
- Created: 2018-10-30T06:09:56.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-10T09:08:12.000Z (9 months ago)
- Last Synced: 2024-05-10T10:26:23.038Z (9 months ago)
- Topics: xamarin, xamarin-forms, xamarin-listview
- Language: C#
- Size: 3.88 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to set different row height for each row in Xamarin.Forms listview?
This example demonstrates how to set different row height for each row in Xamarin.Forms listview.
C# code snippet:
```
// Wiring the event.
listView.QueryItemSize += ListView_QueryItemSize;private void ListView_QueryItemSize(object sender, QueryItemSizeEventArgs e)
{
if (e.ItemIndex % 2 == 0)
e.ItemSize = 50;
else
e.ItemSize = 100;
e.Handled = true;
}
```See [How to set different row height for each row in Xamarin.Forms listview](https://www.syncfusion.com/kb/9478/how-to-set-different-row-height-for-each-row-in-listview) for more details.
## Requirements to run the demo
* [Visual Studio 2017](https://visualstudio.microsoft.com/downloads/) or [Visual Studio for Mac](https://visualstudio.microsoft.com/vs/mac/)
* Xamarin add-ons for Visual Studio (available via the Visual Studio installer).## Troubleshooting
### Path too long exception
If you are facing path too long exception when building this example project, close Visual Studio and rename the repository to short and build the project.