Skip to content

Handle custom attributes from attached property setter #126

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

Merged
merged 1 commit into from
Mar 12, 2025

Conversation

MrJul
Copy link
Contributor

@MrJul MrJul commented Mar 9, 2025

This PR passes the custom attributes from an attached property setter to XamlAstClrProperty.
This is necessary to make [AssignBinding] work on attached properties in Avalonia.

The custom attributes are taken from the setter's second parameter, e.g.:

public static void SetAttachedBinding(Control obj, [AssignBinding] IBinding? value)

@MrJul MrJul force-pushed the attached-property-attributes branch from a2e8a82 to a57ac60 Compare March 10, 2025 10:05
@maxkatz6 maxkatz6 merged commit 005ae81 into kekekeks:master Mar 12, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants