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

Weird behavior with Compiled Bindings #13764

Closed
danardelean opened this issue Mar 8, 2023 · 2 comments
Closed

Weird behavior with Compiled Bindings #13764

danardelean opened this issue Mar 8, 2023 · 2 comments
Labels
area-xaml XAML, CSS, Triggers, Behaviors platform/android 🤖 platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst platform/windows 🪟 t/bug Something isn't working

Comments

@danardelean
Copy link

Description

The compiled bindings don't works as expected

Steps to Reproduce

1.Create two models that have one property in common
2.Set the x:DataType (compiled binding) on the page with one of the two models
3.Set the BindingContext an instance of the second model

I would expect:

  1. If compiled binding should crash as it would use the cast of the object not reflection
  2. Not do the binding on the common property

See the attached sample

Link to public reproduction project repository

https://github.com/danardelean/MAUICompiledBindings

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android, Windows, macOS

Affected platform versions

All

Did you find any workaround?

No response

Relevant log output

No response

@danardelean danardelean added the t/bug Something isn't working label Mar 8, 2023
@jsuarezruiz jsuarezruiz added the area-xaml XAML, CSS, Triggers, Behaviors label Mar 8, 2023
@mattleibow
Copy link
Member

May be related to #11956

@mattleibow
Copy link
Member

Duplicate of #11956

@mattleibow mattleibow marked this as a duplicate of #11956 Mar 8, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Apr 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-xaml XAML, CSS, Triggers, Behaviors platform/android 🤖 platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst platform/windows 🪟 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants