You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BitmapIcon sizing in AutoSuggestBox does not match UWP #5630
difficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUIkind/bugSomething isn't workingproject/layout 🧱Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..)triage/untriagedIndicates an issue requires triaging or verification
When AutoSuggestBox contains a BitmapIcon, it is not sized properly and stretches.
Expected behavior
Should match UWP.
How to reproduce it (as minimally and precisely as possible)
Check the AutoSuggestBox_BitmapIcon sample or the AutoSuggestBox_Icons sample. Notice the stretch applied to the icon differs from UWP.
From investigation it might be an issue with Grid measurement. On UWP for Measure the icon gets INFxINF, while in our case it get {Grid.ActualWidth}xINF. This forces the BitmapIcon to measure its stretched size instead of its actual bitmap size.
difficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUIkind/bugSomething isn't workingproject/layout 🧱Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..)triage/untriagedIndicates an issue requires triaging or verification
Activity