Skip to content

[X] Compile bindings with explicit source #20266

@simonrozsival

Description

@simonrozsival

Currently, XamlC never compiles bindings when Source is specified. Since #19995 has been merged, we do not need to skip compiling bindings with explicit source.

We should also be able to infer the x:DataType value based on the Source in several cases:

  • When the source is RelativeSourceExtension with the mode Self or FindAncestor
  • When the source is a reference to an object of a known type Source={x:Reference mySource} (blocked by [XamlC] Compile x:Reference #20726)
  • When the source is an object with known type

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-xamlXAML, CSS, Triggers, Behaviors

    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