CommunityToolkit / CommunityToolkit/Windows

Bug: TilesBrush not rendering correctly in WASDK compared to UWP

Offen
#686 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C#
Sterne
1.1k
Forks
166
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Describe the bug

> Is there a known issue with TilesBrush? I copied the code and image from Windows Community Toolkit Gallery app and it doesn't work in a simple app. No error, but nothing displayed.
>
> ![](http://origin.owlcore.io/ipfs/bafkreif4gl2so7ktovhybalgtelgz3xr5l75at4vaci22ffog7ins7cv2q?filename=tilebrush%2Cbug%2Cexample.png)

### Steps to reproduce

```text
I was able to repro this bug in a blank WASDK app, and found that this issue is present in the WASDK version of the Gallery as well.

[TilesBrushWasdkBugTest.zip](https://origin.owlcore.io/ipfs/bafkreibvihky53onnwf5yezaujf6rv3jdsy4wbckeqhdrqck6s4oi3tk24?filename=TilesBrushWasdkBugTest.zip)
```

### Expected behavior

On Wasdk, we see:

![](http://origin.owlcore.io/ipfs/bafkreig55zmxgsz75vsqrzo6h4izty7qqz3hiewyi4ov3vfaoqtv7fbfvu?filename=tilebrush%2Cbug%2Cexample%2Cwct%20gallery%2Cwasdk.png)

It's not clear why this works on UWP but not Wasdk.

On UWP, we see:

![](http://origin.owlcore.io/ipfs/bafkreia36wmcltjeqsoabok52xhf3xsmvftqmv4mhzrcfyvsm5rlscrooa?filename=tilebrush%2Cworking%2Cexample%2Cwct%20gallery%2Cuwp.png)

### Screenshots

_No response_

### Code Platform

- [ ] UWP
- [x] WinAppSDK / WinUI 3
- [ ] Web Assembly (WASM)
- [ ] Android
- [ ] iOS
- [ ] MacOS
- [ ] Linux / GTK

### Windows Build Number

- [ ] Windows 10 1809 (Build 17763)
- [ ] Windows 10 1903 (Build 18362)
- [ ] Windows 10 1909 (Build 18363)
- [ ] Windows 10 2004 (Build 19041)
- [ ] Windows 10 20H2 (Build 19042)
- [ ] Windows 10 21H1 (Build 19043)
- [ ] Windows 10 21H2 (Build 19044)
- [ ] Windows 10 22H2 (Build 19045)
- [ ] Windows 11 21H2 (Build 22000)
- [ ] Other (specify)

### Other Windows Build number

_No response_

### App minimum and target SDK version

- [ ] Windows 10, version 1809 (Build 17763)
- [ ] Windows 10, version 1903 (Build 18362)
- [ ] Windows 10, version 1909 (Build 18363)
- [ ] Windows 10, version 2004 (Build 19041)
- [ ] Windows 10, version 2104 (Build 20348)
- [ ] Windows 11, version 22H2 (Build 22000)
- [ ] Other (specify)

### Other SDK version

_No response_

### Visual Studio Version

_No response_

### Visual Studio Build Number

_No response_

### Device form factor

_No response_

### Additional context

Reported in the [`#community-toolkit`](https://discord.com/channels/372137812037730304/669640275500466197/1373160624686895216) channel in the Windows App Community.

### Help us help you

Yes, I'd like to be assigned to work on this item.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, die angehängte TilesBrushWasdkBugTest.zip in einer leeren WinAppSDK/WinUI 3-App auszuführen, und vergleiche sie mit den WASDK- und UWP-Beispielen der Windows Community Toolkit Gallery. Verfolge den Rendering-Einstiegspunkt von TilesBrush und reproduziere den Unterschied; abgeschlossen ist die Aufgabe, wenn TilesBrush in WASDK das erwartete gekachelte Bild wie in UWP anzeigt, mit einer Regressionsprüfung, sofern das Projekt eine bereitstellt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
csharp
Bereich
desktop
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
48/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.