Skip to content

Binding Context on Content View #14919

@AathifMahir

Description

@AathifMahir

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-publishingIssues with the app packaging/publishing process (ipk/apk/msix/trimming)area-xamlXAML, CSS, Triggers, Behaviorsfixed-in-9.0.21legacy-area-controlsLabel, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editorplatform/windowss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions