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

Binding Context on Content View #14919

Closed
AathifMahir opened this issue May 4, 2023 · 2 comments · Fixed by #26072
Closed

Binding Context on Content View #14919

AathifMahir opened this issue May 4, 2023 · 2 comments · Fixed by #26072
Labels
area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) area-xaml XAML, CSS, Triggers, Behaviors fixed-in-9.0.21 legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@AathifMahir
Copy link

AathifMahir commented May 4, 2023

Description

Setting Binding Context on Content View Doesn't Work with Data Template with Compiled Bindings Unless We Set the Relative Source Explicitly, But the Same Content View Without Binding Context Works as Intended with Compiled Bindings without any Relative Source

More Information Regarding This Can be Found in the below Github Repo Sample

Is this the intended behavior or Bug?

Steps to Reproduce

  1. Create New Maui Project
  2. Create a Content View with Couple of Bindable Property
  3. Set the Binding Context to Same Content View
  4. Use that ContentView on MainPage.xaml with Compiled Binding Enabled

Link to public reproduction project repository

https://github.com/AathifMahir/BindingContextOnDataTemplate

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows, I was not able test on other platforms

Affected platform versions

Windows 11 22H2

Did you find any workaround?

No response

Relevant log output

No response

@AathifMahir AathifMahir added the t/bug Something isn't working label May 4, 2023
@mattleibow mattleibow added area-xaml XAML, CSS, Triggers, Behaviors legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) labels May 4, 2023
@mattleibow mattleibow added this to the Backlog milestone May 4, 2023
@ghost
Copy link

ghost commented May 4, 2023

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

@homeyf homeyf added s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage labels Jan 11, 2024
@homeyf
Copy link

homeyf commented Jan 11, 2024

Verified this issue with Visual Studio Enterprise 17.9.0 Preview 2.1. Can repro on Windows platforms with sample project.
https://github.com/AathifMahir/BindingContextOnDataTemplate
image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) area-xaml XAML, CSS, Triggers, Behaviors fixed-in-9.0.21 legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants