CommunityToolkit / CommunityToolkit/Windows

IsEqualStateTrigger with Enum throwing FormatException at runtime

Aperta
#46 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug components::triggers
Lingua principale
C#
Stelle
1.1k
Fork
166
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Bringing this issue from [here](https://github.com/CommunityToolkit/Labs-Windows/issues/216#issuecomment-1542604878)

I've discovered this while using `SettingsCard` and changing it's `ContentAlignment` property at runtime by editing XAML.
The `SettingsCard` uses the trigger like this:
```xaml

```

When I set that property before running the app, it works as it should.
But when I live edit it, it doesn't work and logs `FormatException`.

I found it fails here:
![image](https://github.com/CommunityToolkit/Labs-Windows/assets/13891066/94418914-c6d5-4ab0-9695-c818492c7b58)
![image](https://github.com/CommunityToolkit/Labs-Windows/assets/13891066/a7ed248b-6354-41f4-81c4-a22e77ce254f)

Two more notes:
- I didn't try binding it somewhere
- I'd say this might be occurring in other triggers too, didn't test

I'm running WindowsAppsSDK 1.3

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.