Skip to content

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
Contributor

@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
@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