Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IsEqualStateTrigger with Enum throwing FormatException at runtime #46

Open
leoshusar opened this issue May 11, 2023 · 0 comments
Open

Comments

@leoshusar
Copy link

leoshusar commented May 11, 2023

Bringing this issue from here

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:

<labs:IsEqualStateTrigger Value="{Binding ContentAlignment, RelativeSource={RelativeSource TemplatedParent}}" To="Left" />

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
image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant