We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Such properties in Avalonia must be declared in static constructor:
static MyControl() { AffectsRender<MyControl>(MyProperty); AffectsMeasure<MyControl>(MyProperty); AffectsArrange<MyControl>(MyProperty); }
Declare class with following attribute:
[DependencyProperty("Fill", typeof(IBrush), AffectsRender = true)]
Generated static constructor with following code:
static MyControl() { AffectsRender<MyControl>(FillProperty); }
No response
1.5.0-beta.2
Visual Studio 2022
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Such properties in Avalonia must be declared in static constructor:
Steps to reproduce the bug
Declare class with following attribute:
Expected behavior
Generated static constructor with following code:
Screenshots
No response
NuGet package version
1.5.0-beta.2
IDE
Visual Studio 2022
Additional context
No response
The text was updated successfully, but these errors were encountered: