Skip to content

This example demonstrates how to set different row height for each row in Xamarin Forms sflistview.

Notifications You must be signed in to change notification settings

SyncfusionExamples/How-to-set-different-row-height-for-each-row-in-Xamarin.Forms-listview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

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 for more details.

Requirements to run the demo

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.

About

This example demonstrates how to set different row height for each row in Xamarin Forms sflistview.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages