Multi Line Text in SF Button being cliped at the bottom

having an odd issue with sf button and using multi line content


  <ListView x:Name="lvSessions" VerticalScrollBarVisibility="Always">

        <ListView.ItemTemplate>

            <DataTemplate>

                <ViewCell>

                    <StackLayout >

                        <syncfusion:SfButton Clicked="SfButton_Clicked"

                                            AutomationId="{Binding Id}" Text="{Binding Name}" TextColor="White" VerticalOptions="CenterAndExpand">

                            <syncfusion:SfButton.Content >

                                <StackLayout BackgroundColor="White">

                                                    <Label Text="{Binding Name}" BackgroundColor="Black" VerticalTextAlignment="Center" TextColor="White" HorizontalOptions="Center"></Label>

                                                    <Label Text="{Binding StartDate}" BackgroundColor="Black" VerticalTextAlignment="Center" TextColor="White" HorizontalOptions="Center"></Label>

                                    <BoxView Margin="10,10,10,10"></BoxView>

                                </StackLayout>


                            </syncfusion:SfButton.Content>


                        </syncfusion:SfButton>



                    </StackLayout>

                </ViewCell>

            </DataTemplate>

        </ListView.ItemTemplate>

    </ListView>


Here is the result as you can see the text is being cliped at the bottom Ie not enough room in the button to show the full text any ideas?




2 Replies

DA David January 15, 2022 04:51 PM UTC

I tried the solution here but again didnt work 


Multiline text in SfButton | Xamarin.Forms Forums | Syncfusion



GM Gayathri Manickam Syncfusion Team January 17, 2022 02:41 PM UTC

Hi David, 
 
We have checked the reported issue with provided code snippet and unable to reproduce the issue at our end. Also, unable to find any code related to multiline support provided for label in the button content and attached the tested sample for your reference. Could you please share us the more details to replicate the issue, if possible, revert us by modifying the provided sample based on your application along with replication procedure which will be helpful to provide better solution at earliest. 
 
 
Thanks, 
Gayathri M. 


Loader.
Up arrow icon