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

Style using Compiled Bindings throws InvalidCastException in run time #7757

Open
SuperJMN opened this issue Mar 7, 2022 · 0 comments
Open
Labels

Comments

@SuperJMN
Copy link
Contributor

SuperJMN commented Mar 7, 2022

Describe the bug

Using a specific Style with compiled bindings causes InvalidCastException in run time

To Reproduce

  1. Clone this branch: https://github.com/SuperJMN/WalletWasabi/tree/issues/style-invalidcast-using-cbindings (Wasabi Wallet)
  2. Modify the IDE to break in every exception (Exception Settings)
    image
  3. Start debugging
  4. Open any Wallet
  5. You should get this just before the wallet is opened:
    image

Expected behavior
The exception shouldn't be thrown

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows
  • Version 11 21H2 (reportedly happening in other Windows versiosn)

Additional context
The problem is seemingly located around this style:

https://github.com/SuperJMN/WalletWasabi/blob/e200f51942a827286c3828f0d713fca50f0979bc/WalletWasabi.Fluent/Views/Wallets/Home/WalletTiles.axaml#L60

In fact, to temporarily solve the issue, you can just add x:CompiledBindings="False" to the Style. It works then.

More information in this PR

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

No branches or pull requests

1 participant