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

Use Avalonia 11 generated view codes #1479

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

de1acr0ix
Copy link
Contributor

Avalonia 11 automatically generates some view codes.

  • Properties for controls with x:Name or Name.
  • InitializeComponent() method to initialize such properties.
  • DevTools for debug builds.

This change uses such generated codes in views and reduces manual efforts. The names of the controls are changed to start with underscore, so that the generated property names align with the naming style in this project.

@mjcheetham mjcheetham self-assigned this Dec 5, 2023
Copy link
Collaborator

@mjcheetham mjcheetham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks for this quality of life improvement! :-)

@mjcheetham mjcheetham merged commit 387fa93 into git-ecosystem:main Dec 5, 2023
6 checks passed
@de1acr0ix de1acr0ix deleted the use-generated-view-codes branch December 6, 2023 07:13
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