xamarin/Xamarin.Forms

In ListView, FontIcon does not load properly when loaded inside the Button

Open

#7,093 opened on Aug 7, 2019

 (2 comments) (0 reactions) (0 assignees)C# (1,926 forks)batch import
a/listviewe/3 :clock3:help wantedp/Androidpartnert/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Description

When FontIcon loaded inside Button, icon does not load properly for all the listview items. Only the first icon loads as expected. We have ListView-StackLayout-{Image-Label-Button}

1.If ListView format is ListView-StackLayout-{Label-Button} -> No issue occurs and Button inside icon loads properly for all listview items. 2. If ListView format is ListView-StackLayout-{Button-Label-Button} -> No issue occurs and Button inside icon loads properly for all listview items.

Steps to Reproduce

1.Run the sample 2. Note when image is added inside the ItemTemplate- FontIcon inside the button will not render in all properly in all items properly.

Expected Behavior

Even Image added to the Itemtemplate Button should also display properly

Actual Behavior

When image is added inside the ItemTemplate- FontIcon inside the button will not render in all properly in all items properly.

Basic Information

  • Version with issue: 4.1
  • IDE: VS 2019

Screenshots

image

image

Edit StackLayout with {Button-Label-Button } image

Reproduction Link

https://www.syncfusion.com/downloads/support/directtrac/general/ze/GettingStarted-232219824

Contributor guide