dotnet / dotnet/maui

[Windows] - Image in CollectionView DataTemplate does not align correctly

Open
#31,345 2 comments 1 reaction 0 assignees View on GitHub
area-controls-collectionview partner/syncfusion platform/windows s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 10h
Merged PRs (30d)
297

Description

### Description

In Windows, if you use an Image as the root element in a CollectionView and set its WidthRequest, the width is applied, but the image is not aligned correctly.

### Steps to Reproduce

1. Checkout https://github.com/drasticactions/MauiRepros/tree/main/MauiImageLayout
2. Run sample.

| Expected Behaviour | Actual Behaviour|
|----------|----------|
| | |

### Link to public reproduction project repository

https://github.com/drasticactions/MauiRepros/tree/main/MauiImageLayout

### Version with bug

9.0.100 SR10

### Is this a regression from previous behavior?

Not sure, did not test other versions

### Last version that worked well

_No response_

### Affected platforms

Windows

### Affected platform versions

_No response_

### Did you find any workaround?

_No response_

### Relevant log output

```shell

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.