Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] Compiled bindings not working when using AncestorType #9839

Open
tranb3r opened this issue Mar 4, 2020 · 10 comments
Open

[Bug] Compiled bindings not working when using AncestorType #9839

tranb3r opened this issue Mar 4, 2020 · 10 comments

Comments

@tranb3r
Copy link

tranb3r commented Mar 4, 2020

Description

Compiled bindings are not working when the binding source is a relative source using ancestor type.
{Binding Source={RelativeSource AncestorType={x:Type local:PeopleViewModel}}, Path=DeleteEmployeeCommand}

Expected Behavior

By definition, the binding source type is defined by AncestorType.
So it should be possible to resolve it at compile time.

Actual Behavior

Unfortunately, this type of binding is not compiled.

Basic Information

  • Version with issue: XF 4.5.0
  • Last known good version: none
  • IDE: VS 2019 16.5.0 preview 5.0
  • Platform Target Frameworks: all
@tranb3r tranb3r added s/unverified New report that has yet to be verified t/bug 🐛 labels Mar 4, 2020
@tranb3r
Copy link
Author

tranb3r commented Mar 4, 2020

cc @StephaneDelcroix

@hartez hartez assigned hartez and StephaneDelcroix and unassigned hartez Mar 7, 2020
@StephaneDelcroix StephaneDelcroix added a/binding ⛓ a/Xaml </> and removed s/unverified New report that has yet to be verified t/bug 🐛 labels Mar 12, 2020
@Cfun1
Copy link

Cfun1 commented Sep 5, 2020

Any feedback about this issue?
Is it the same issue described by https://stackoverflow.com/questions/63749594 ?

@tranb3r
Copy link
Author

tranb3r commented Jan 6, 2021

@StephaneDelcroix Is this going to be fixed someday ?

@tranb3r
Copy link
Author

tranb3r commented Apr 1, 2021

@StephaneDelcroix
Any update? Can we expect compiled bindings to be complete someday?

@tranb3r
Copy link
Author

tranb3r commented May 3, 2021

@StephaneDelcroix @davidortinau
I'd really appreciate an answer.

  • is there any hope for a fix ?
  • if you cannot fix it, maybe you should explain why, and fix the documentation.

Thanks!

@tranb3r
Copy link
Author

tranb3r commented May 3, 2021

Also, compiled bindings do not seem to work for:

  • multibinding
  • picker ItemDisplayBinding
  • datatrigger

Any reason for that ? Can this be fixed ?

@ziomek64
Copy link

ziomek64 commented Oct 8, 2021

@tranb3r I also get this bug sadly, I noticed that from Multibinding not working. One workaround is to replace those faulty parts in XAML with respective C# code. It works for me at least for multibinding

@SliemBeji-FBC
Copy link

still its an issue..

@StephaneDelcroix
Copy link
Member

if it's an issue in MAUI, file an issue over there

@SliemBeji-FBC
Copy link

It's not about Maui it's about Xamarin. Currently my company stays at Xamarin since .net Maui has too many flaws and is instable

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

No branches or pull requests

6 participants