Custom view and maximum height

Hello,

I use a custom view in a SfPicker, if I add an image with a height of 50, it is not displayed in its entirety (it is cut off at the top and bottom).

Is it possible to increase the height of the area dedicated to each item?

This is roughly equivalent to the height of the purple pill in the screenshot below.

Image_4593_1769552783965


Thanks for your assistance.


3 Replies

HM Hadayarahman Mohamed Khan Yusuf Syncfusion Team January 28, 2026 09:44 AM UTC

Hi Omar,
Based on the details provided, we have analyzed the query. You can increase the height allocated to each item by using the ItemHeight property. We have attached a sample demonstrating these changes to this ticket. Please let us know if you need any further assistance.

    <syncfusion:SfPicker

                x:Name="picker"

                ItemHeight="60">

        <syncfusion:SfPicker.Columns>

            <syncfusion:PickerColumn>

                <syncfusion:PickerColumn.ItemsSource>

                    <x:Array Type="{x:Type x:String}">

                        <x:String>Item 1</x:String>

                        <x:String>Item 2</x:String>

                        <x:String>Item 3</x:String>

                        <x:String>Item 4</x:String>

                        <x:String>Item 5</x:String>

                        <x:String>Item 6</x:String>

                        <x:String>Item 7</x:String>

                    </x:Array>

                </syncfusion:PickerColumn.ItemsSource>

            </syncfusion:PickerColumn>

        </syncfusion:SfPicker.Columns>

        <syncfusion:SfPicker.ItemTemplate>

            <DataTemplate>

                <Grid>

                    <Label Background="Red" HorizontalOptions="Center" VerticalOptions="Center" Text="{Binding Data}" HeightRequest="50"/>

                </Grid>

            </DataTemplate>

        </syncfusion:SfPicker.ItemTemplate>

    </syncfusion:SfPicker>

Regards,

Hadaya Rahman M


Attachment: MauiApp1_d4e7c6c8.zip


OM Omar January 30, 2026 03:37 AM UTC

Hi Hadaya,


Perfect, that's exactly what I was looking for!





VM Vidyalakshmi Mani Syncfusion Team January 30, 2026 09:59 AM UTC

Hi Omar,


We’re glad to hear that the issue has been resolved successfully on your side. If you have any further questions or run into any other issues, please feel free to reach out. We’ll be happy to assist you.


Regards,

Vidyalakshmi M.



Loader.
Up arrow icon