Skip to content

[x:Bind] Invalid cast exception on changing x:Bind #110

Open

Description

@DevTKSS

Current behavior

Each time I am changing some of the x:Bind things in my WebView2SampleApp (UnoApp5 just renamed meanwhile) that are binding to UI things (I am using Binding for the Model things) I am getting an curious InvalidCastException which not even have to show the control type I edited right before but most of the time it is. Thrown E.g. Button to Page (never attempted to!) or ProgressRing also:

https://cdn.discordapp.com/attachments/1375122949576724500/1416155921163223082/image.png?ex=68d3007a&is=68d1aefa&hm=ecc5c0df82b9fe05ef618077c615a0180efdd0533cb4036e92b2438f6babdd81&

got to know this kind of issues since the latest release and not always, so not thinking it was WebView2 Control. its on moving them around, but this exceptions always telling that they tryed to type them to something I not even touched then... e.g. the Inline Collection is not even near the Progress Ring, which I added an x:Bind right before this was throwing

Expected behavior

Should not happen just like when using Binding

Which tool(s) are affected?

Hot Design®, Hot Reload

How to reproduce it (as minimally and precisely as possible)

You can use the same UnoApp5 repro as on the last issues as repro

  • Create or edit an x:Bind
  • click save to trigger Hot Reload

Workaround

Just click "continue" in your ide after gotten this exception

Renderer

  • Skia
  • Native

Affected platforms

Desktop - net9.0-desktop (on Windows)

Uno.Sdk version

6.2.36 (? Lookup in repro)

IDE used

No response

IDE version

Vs2022 .14.15 (latest)

Uno Platform Extension version

Same as sdk version

Relevant plugins

No response

Anything else we need to know?

No response

Activity

  1. added
    triage/untriaged
    on Sep 23, 2025
  2. added theissue type on Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty/tbdtool/Hot Design®tool/Hot Reloadtriage/untriaged

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions